Changeset 28191


Ignore:
Timestamp:
03/27/24 07:28:08 (12 months ago)
Author:
sehrenfe
Message:

BUG: enable parallel computing on compute canada clusters

File:
1 edited

Legend:

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

    r27672 r28191  
    9595                         fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME
    9696                         fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname);
    97                          fprintf(fid,'srun %s/issm.exe %s %s %s\n',cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
     97                         fprintf(fid,'srun -n %i %s/issm.exe %s %s %s\n',cluster.np(),cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    9898                         if ~io_gather, %concatenate the output files:
    9999                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
Note: See TracChangeset for help on using the changeset viewer.