Changeset 26923


Ignore:
Timestamp:
03/08/22 21:48:37 (3 years ago)
Author:
adhikari
Message:

CHG: provide the path to external packages in case these are installed elsewhere

Location:
issm/trunk-jpl/src/m/classes/clusters
Files:
2 edited

Legend:

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

    r26922 r26923  
    1919                processor      = 'ivy';
    2020                srcpath        = '';
     21                extpkgpath     = '';
    2122                codepath       = '';
    2223                executionpath  = '';
     
    5253                        disp(sprintf('    processor: %i',cluster.processor));
    5354                        disp(sprintf('    srcpath: %s',cluster.srcpath));
     55                        disp(sprintf('    extpkgpath: %s',cluster.extpkgpath));
    5456                        disp(sprintf('    codepath: %s',cluster.codepath));
    5557                        disp(sprintf('    executionpath: %s',cluster.executionpath));
     
    173175                        fprintf(fid,'export MPI_GROUP_MAX=64\n\n');
    174176                        fprintf(fid,'export ISSM_DIR="%s"\n',cluster.srcpath); %FIXME
     177                        if cluster.extpkgpath
     178                                fprintf(fid,'export ISSM_EXT_PKG="%s"\n',cluster.extpkgpath);
     179                        end
    175180                        fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
    176181                        fprintf(fid,'cd %s/%s/\n\n',cluster.executionpath,dirname);
  • issm/trunk-jpl/src/m/classes/clusters/pfe.py

    r26922 r26923  
    3636        self.processor = 'ivy'
    3737        self.srcpath = ''
     38        self.extpkgpath = ''
    3839        self.codepath = ''
    3940        self.executionpath = ''
     
    7273        s += '    processor: {}\n'.format(self.processor)
    7374        s += '    srcpath: {}\n'.format(self.srcpath)
     75        s += '    extpkgpath: {}\n'.format(self.extpkgpath)
    7476        s += '    codepath: {}\n'.format(self.codepath)
    7577        s += '    executionpath: {}\n'.format(self.executionpath)
     
    177179        fid.write('export MPI_GROUP_MAX=64\n\n')
    178180        fid.write('export ISSM_DIR="{}"\n'.format(self.srcpath)) # FIXME
     181        if self.extpkgpath:
     182            fid.write('export ISSM_EXT_PKG="{}"\n'.format(self.extpkgpath))
    179183        fid.write('source $ISSM_DIR/etc/environment.sh\n') # FIXME
    180184        fid.write('cd {}/{}/\n\n'.format(self.executionpath, dirname))
Note: See TracChangeset for help on using the changeset viewer.