Changeset 24569


Ignore:
Timestamp:
02/20/20 06:05:48 (5 years ago)
Author:
bdef
Message:

NEW: migrating Hydro tests to 900 (SquareNoDyn geometry) and minor changes

Location:
issm/trunk-jpl
Files:
20 added
4 edited

Legend:

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

    r24497 r24569  
    3030        self.executionpath = issmdir() + '/execution'
    3131        self.valgrind = issmdir() + '/externalpackages/valgrind/install/bin/valgrind'
    32         self.valgrindlib = issmdir() + '/externalpackages/valgrind/install/lib/libmpidebug.so'
    33         self.valgrindsup = issmdir() + '/externalpackages/valgrind/issm.supp'
     32        self.valgrindlib = '/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so.20.10.1'
     33        self.valgrindsup = [issmdir() + '/externalpackages/valgrind/issm.supp']  # add any .supp in list form as needed
    3434
    3535        #use provided options to change fields
     
    103103                #Add --gen -suppressions = all to get suppression lines
    104104                #fid.write('LD_PRELOAD={} \\\n'.format(self.valgrindlib)) it could be deleted
     105                supstring = ''
     106                for supfile in self.valgrindsup:
     107                    supstring += ' --suppressions=' + supfile
     108
    105109                if IssmConfig('_HAVE_MPI_')[0]:
    106                     fid.write('mpiexec -np {} {} --leak-check=full --suppressions={} {}/{} {} {}/{} {} 2>{}.errlog>{}.outlog '.
    107                               format(self.np, self.valgrind, self.valgrindsup, self.codepath, executable, solution, self.executionpath, dirname, modelname, modelname, modelname))
     110                    fid.write('mpiexec -np {} {} --leak-check=full {} {}/{} {} {}/{} {} 2>{}.errlog>{}.outlog '.
     111                              format(self.np, self.valgrind, supstring, self.codepath, executable, solution, self.executionpath, dirname, modelname, modelname, modelname))
    108112                else:
    109                     fid.write('{} --leak-check=full --suppressions={} {}/{} {} {}/{} {} 2>{}.errlog>{}.outlog '.
    110                               format(self.valgrind, self.valgrindsup, self.codepath, executable, solution, self.executionpath, dirname, modelname, modelname, modelname))
     113                    fid.write('{} --leak-check=full {} {}/{} {} {}/{} {} 2>{}.errlog>{}.outlog '.
     114                              format(self.valgrind, supstring, self.codepath, executable, solution, self.executionpath, dirname, modelname, modelname, modelname))
    111115
    112116            if not io_gather:  #concatenate the output files:
     
    147151                #Add - -    gen - suppressions = all to get suppression lines
    148152                #fid.write('LD_PRELOAD={} \\\n'.format(self.valgrindlib))
    149                 fid.write('mpiexec -np {} {} --leak -check=full --suppressions={} {}/kriging.exe {}/{} {} 2 > {}.errlog > {}.outlog ' .format
    150                           (self.np, self.valgrind, self.valgrindsup, self.codepath, self.executionpath, modelname, modelname, modelname, modelname))
     153                fid.write('mpiexec -np {} {} --leak -check=full --suppressions={} {}/kriging.exe {}/{} {} 2 > {}.errlog > {}.outlog ' .format(self.np, self.valgrind, self.valgrindsup, self.codepath, self.executionpath, modelname, modelname, modelname, modelname))
    151154            if not io_gather:    #concatenate the output files:
    152155                fid.write('\ncat {}.outbin. *>{}.outbin'.format(modelname, modelname))
  • issm/trunk-jpl/src/m/plot/plot_unit.py

    r24565 r24569  
    7373    else:
    7474        limextent = 0.
     75
    7576    if options.exist('clim'):
    7677        lims = options.getfieldvalue('clim', [np.nanmin(data), np.nanmax(data)])
     
    7879        lims = options.getfieldvalue('caxis', [np.nanmin(data), np.nanmax(data)])
    7980    else:
    80         if np.nanmin(data) == np.nanmax(data):
    81             lims = [np.nanmin(data) * 0.9, np.nanmax(data) * 1.1]
     81        if limextent == 0.:
     82            delta = abs(0.1 * np.nanmin(data))
     83            lims = [np.nanmin(data) - delta, np.nanmax(data) + delta]
    8284        elif limextent < 1.0e-12:
    8385            lims = [np.nanmin(data) - 2 * dataspread, np.nanmax(data) + 2 * dataspread]
  • issm/trunk-jpl/test/NightlyRun/GetIds.py

    r24261 r24569  
    4444        if np.array([type(i) == int for i in ids_names]).all():
    4545            ids = ids_names
     46        if np.array([type(i) == np.int64 for i in ids_names]).all():
     47            ids = ids_names
    4648        elif np.array([type(i) == str for i in ids_names]).all():
    4749            ids = np.concatenate([IdFromString(i) for i in ids_names])
Note: See TracChangeset for help on using the changeset viewer.