radical-collaboration / CyberManufacturing

CDSE Multi-scale CI Project
1 stars 0 forks source link

Rp passing liggghts path to PBM executable #41

Closed csampat closed 6 years ago

csampat commented 6 years ago

The executor passes the liggghts path for the PBM executable in _stat_pbm_unit()

def _start_pbm_units(self,timestep=0, init_timestep=0,dem_timestep=0,\
                         mixing_time=0,restart=False):

        try:
            # Get the path to the DEM folder. This will allow correct staging
            # input for the PBMs
            dem_monitor_path = ru.Url(self._dem_monitor_unit.sandbox).path
            dem_path         = ru.Url(self._dem_unit.sandbox).path

            # Create a list of PBM units and insert every description in that list
            pbm_cud_list = list()
            for i in range(self._PBMs):
                cud = rp.ComputeUnitDescription()
                cud.environment    = ['PATH='+self._pathtoLIGGHTS+':$PATH']

correcting it to

for i in range(self._PBMs):
                cud = rp.ComputeUnitDescription()
                cud.environment    = ['PATH='+self._pathtoPBMexecutable+':$PATH']
csampat commented 6 years ago

line 373

iparask commented 6 years ago

Fixed by @ChaiSam Thank you!