Changeset 23618
- Timestamp:
- 01/09/19 11:37:51 (6 years ago)
- Location:
- issm/trunk-jpl/src/m/classes/clusters
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/aurora.m
r23615 r23618 41 41 end 42 42 %}}} 43 function numprocs=np(cluster) % {{{ 44 %compute number of processors 45 numprocs=cluster.numnodes*cluster.cpuspernode; 46 end 47 %}}} 43 48 function md = checkconsistency(cluster,md,solution,analyses) % {{{ 44 49 … … 54 59 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end 55 60 if(isgprof), disp('gprof not supported by cluster, ignoring...'); end 61 executable='issm.exe'; 62 if isdakota, 63 version=IssmConfig('_DAKOTA_VERSION_'); version=str2num(version(1:3)); 64 if (version>=6), 65 executable='issm_dakota.exe'; 66 end 67 end 68 if isoceancoupling, 69 executable='issm_ocean.exe'; 70 end 56 71 57 72 %write queuing script … … 74 89 fprintf(fid,'export PBS_O_WORKDIR=%s\n',[cluster.executionpath '/' dirname]); 75 90 fprintf(fid,'cd $PBS_O_WORKDIR\n'); 76 fprintf(fid,'mpirun -n %i %s/ issm.exe %s %s %s',cluster.numnodes*cluster.cpuspernode,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);91 fprintf(fid,'mpirun -n %i %s/%s %s %s %s',cluster.np(),cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 77 92 fclose(fid); 78 93 -
issm/trunk-jpl/src/m/classes/clusters/localaurora.m
r23617 r23618 41 41 end 42 42 %}}} 43 function numprocs=np(cluster) % {{{ 44 %compute number of processors 45 numprocs=cluster.numnodes*cluster.cpuspernode; 46 end 47 %}}} 43 48 function md = checkconsistency(cluster,md,solution,analyses) % {{{ 44 49 … … 54 59 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end 55 60 if(isgprof), disp('gprof not supported by cluster, ignoring...'); end 61 executable='issm.exe'; 62 if isdakota, 63 version=IssmConfig('_DAKOTA_VERSION_'); version=str2num(version(1:3)); 64 if (version>=6), 65 executable='issm_dakota.exe'; 66 end 67 end 68 if isoceancoupling, 69 executable='issm_ocean.exe'; 70 end 56 71 57 72 %write queuing script … … 74 89 fprintf(fid,'export PBS_O_WORKDIR=%s\n',[cluster.executionpath '/' dirname]); 75 90 fprintf(fid,'cd $PBS_O_WORKDIR\n'); 76 fprintf(fid,'mpirun -n %i %s/ issm.exe %s %s %s',cluster.numnodes*cluster.cpuspernode,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);91 fprintf(fid,'mpirun -n %i %s/%s %s %s %s',cluster.np(),cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 77 92 fclose(fid); 78 93
Note:
See TracChangeset
for help on using the changeset viewer.