Changeset 24252
- Timestamp:
 - 10/17/19 20:43:19 (6 years ago)
 - Location:
 - issm/trunk-jpl/src/m
 - Files:
 - 
      
- 6 edited
 
- 
          
  classes/clusters/generic.py (modified) (1 diff)
 - 
          
  os/issmdir.py (modified) (1 diff)
 - 
          
  os/issmscpin.py (modified) (1 diff)
 - 
          
  os/issmscpout.py (modified) (2 diffs)
 - 
          
  os/issmssh.py (modified) (2 diffs)
 - 
          
  solve/loadresultsfromdisk.py (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
issm/trunk-jpl/src/m/classes/clusters/generic.py
r24240 r24252 147 147 #Add - - gen - suppressions = all to get suppression lines 148 148 #fid.write('LD_PRELOAD={} \\\n'.format(self.valgrindlib)) 149 fid.write('mpiexec - np {} {} --leak -check=full --suppressions={} {}/kriging.exe {}/{} {} 2 > {}.errlog > {}.outlog ' .format149 fid.write('mpiexec -np {} {} --leak -check=full --suppressions={} {}/kriging.exe {}/{} {} 2 > {}.errlog > {}.outlog ' .format 150 150 (self.np, self.valgrind, self.valgrindsup, self.codepath, self.executionpath, modelname, modelname, modelname, modelname)) 151 151 if not io_gather: #concatenate the output files:  - 
      
issm/trunk-jpl/src/m/os/issmdir.py
r24213 r24252 16 16 ISSM_DIR = os.environ['ISSM_DIR_WIN'] 17 17 if m.strcmpi(ISSM_DIR[-1], '/') or m.strcmpi(ISSM_DIR[-1], '\\'): 18 ISSM_DIR = ISSM_DIR[: -1] #shave off the last '/'18 ISSM_DIR = ISSM_DIR[:-1] #shave off the last '/' 19 19 20 20 if not ISSM_DIR:  - 
      
issm/trunk-jpl/src/m/os/issmscpin.py
r24251 r24252 55 55 for package in packages: 56 56 if not os.path.exists(os.path.join('.', package)): 57 raise OSError("issmscpin error message: could not call scp on * nix system for file '{}'".format(package))57 raise OSError("issmscpin error message: could not call scp on *nix system for file '{}'".format(package))  - 
      
issm/trunk-jpl/src/m/os/issmscpout.py
r24213 r24252 32 32 #get ISSM_DIR variable 33 33 if 'ISSM_DIR_WIN' in os.environ: 34 ISSM_DIR = os.environ['ISSM_DIR_WIN'][1: -2]34 ISSM_DIR = os.environ['ISSM_DIR_WIN'][1:-2] 35 35 else: 36 36 raise OSError("issmscpout error message: could not find ISSM_DIR_WIN environment variable.") … … 54 54 55 55 if port: 56 subprocess.call('scp - P %d %s %s@localhost:%s' % (port, string, login, path), shell=True)56 subprocess.call('scp -P %d %s %s@localhost:%s' % (port, string, login, path), shell=True) 57 57 else: 58 58 subprocess.call('scp %s %s@%s:%s' % (string, login, host, path), shell=True)  - 
      
issm/trunk-jpl/src/m/os/issmssh.py
r24228 r24252 25 25 #get ISSM_DIR variable 26 26 if 'ISSM_DIR_WIN' in os.environ: 27 ISSM_DIR = os.environ['ISSM_DIR_WIN'][1: -2]27 ISSM_DIR = os.environ['ISSM_DIR_WIN'][1:-2] 28 28 else: 29 29 raise OSError("issmssh error message: could not find ISSM_DIR_WIN environment variable.") … … 44 44 # "IOError: [Errno 35] Resource temporarily unavailable" 45 45 # on the Mac when trying to display md after the solution. 46 # (from http: / / code.google.com / p / robotframework / issues / detail?id =995)46 # (from http://code.google.com/p/robotframework/issues/detail?id=995) 47 47 if _platform == "darwin": 48 48 # Make FreeBSD use blocking I / O like other platforms  - 
      
issm/trunk-jpl/src/m/solve/loadresultsfromdisk.py
r24240 r24252 39 39 if os.path.exists(md.miscellaneous.name + '.errlog'): 40 40 with open(md.miscellaneous.name + '.errlog', 'r') as f: 41 setattr(getattr(md.results, structure[0].SolutionType)[0], 'errlog', [line[: -1] for line in f])41 setattr(getattr(md.results, structure[0].SolutionType)[0], 'errlog', [line[:-1] for line in f]) 42 42 else: 43 43 setattr(getattr(md.results, structure[0].SolutionType)[0], 'errlog', []) … … 45 45 if os.path.exists(md.miscellaneous.name + '.outlog'): 46 46 with open(md.miscellaneous.name + '.outlog', 'r') as f: 47 setattr(getattr(md.results, structure[0].SolutionType)[0], 'outlog', [line[: -1] for line in f])47 setattr(getattr(md.results, structure[0].SolutionType)[0], 'outlog', [line[:-1] for line in f]) 48 48 else: 49 49 setattr(getattr(md.results, structure[0].SolutionType)[0], 'outlog', [])  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)