Changeset 24600


Ignore:
Timestamp:
02/27/20 00:06:56 (5 years ago)
Author:
bdef
Message:

CHG:change in the handling of settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/clusters/generic.py

    r24593 r24600  
    1010from issmscpout import issmscpout
    1111import MatlabFuncs as m
     12try:
     13    from generic_settings import generic_settings
     14except ImportError:
     15    print('Warning generic_settings.py not found, default will be used')
    1216
    1317
     
    3034        self.executionpath = issmdir() + '/execution'
    3135        self.valgrind = issmdir() + '/externalpackages/valgrind/install/bin/valgrind'
    32         self.valgrindlib = '/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so.20.10.1'
     36        self.valgrindlib = issmdir() + '/externalpackages/valgrind/install/lib/libmpidebug.so'
    3337        self.valgrindsup = [issmdir() + '/externalpackages/valgrind/issm.supp']  # add any .supp in list form as needed
    3438        self.verbose = 1
     
    4246
    4347        #initialize cluster using user settings if provided
     48
    4449        try:
    4550            self = generic_settings(self)
    4651        except NameError:
    4752            print("generic_settings.py not found, using default settings")
    48         else:
    49             raise
    50 
     53        # else:
     54        #     raise
    5155
    5256        #OK get other fields
    5357        self = options.AssignObjectFields(self)
    5458    # }}}
     59
    5560    def __repr__(self):  # {{{
    5661        #  display the object
     
    6974        return s
    7075    # }}}
     76
    7177    def checkconsistency(self, md, solution, analyses):  # {{{
    7278        if self.np < 1:
     
    7783        return md
    7884    # }}}
     85
    7986    def BuildQueueScript(self, dirname, modelname, solution, io_gather, isvalgrind, isgprof, isdakota, isoceancoupling):  # {{{
    8087        # Which executable are we calling?
    81         executable = 'issm.exe' # default
     88        executable = 'issm.exe'  # default
    8289
    8390        if isdakota:
     
    143150            fid.close()
    144151    # }}}
     152
    145153    def BuildKrigingQueueScript(self, modelname, solution, io_gather, isvalgrind, isgprof):  # {{{
    146154        #write queuing script
     
    180188            fid.close()
    181189    # }}}
     190
    182191    def UploadQueueJob(self, modelname, dirname, filelist):  # {{{
    183192        #compress the files into one zip.
     
    193202
    194203    # }}}
     204
    195205    def LaunchQueueJob(self, modelname, dirname, filelist, restart, batch):  # {{{
    196206        print('launching solution sequence on remote cluster')
     
    204214        issmssh(self.name, self.login, self.port, launchcommand)
    205215    # }}}
     216
    206217    def Download(self, dirname, filelist):  # {{{
    207218        if m.ispc():
Note: See TracChangeset for help on using the changeset viewer.