Changeset 27975
- Timestamp:
- 10/27/23 20:40:19 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/classes/clusters/generic_static.m ¶
r27949 r27975 88 88 fid=fopen([modelname '.queue'],'w'); 89 89 fprintf(fid,'#!%s\n',cluster.shell); 90 if cluster.interactive 91 if IssmConfig('_HAVE_MPI_'), 92 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 93 else 94 fprintf(fid,'%s/%s %s %s %s',cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 95 end 96 else 97 if IssmConfig('_HAVE_MPI_'), 98 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s 2> %s.errlog > %s.outlog &',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname); 99 else 100 fprintf(fid,'%s/%s %s %s %s 2> %s.errlog > %s.outlog &',cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname); 101 end 102 end 90 fprintf(fid,['%s/mpiexec -np %i %s/%s %s %s %s \n'],codepath,cluster.np,codepath,executable,solution,'./',modelname); 103 91 fclose(fid); 104 92 else % Windows … … 114 102 end 115 103 116 %in interactive mode, create a run file, and errlog and outlog file 117 if cluster.interactive, 118 fid=fopen([modelname '.errlog'],'w'); 119 fclose(fid); 120 fid=fopen([modelname '.outlog'],'w'); 121 fclose(fid); 122 end 104 %Create an errlog and outlog file 105 fid=fopen([modelname '.errlog'],'w'); 106 fclose(fid); 107 fid=fopen([modelname '.outlog'],'w'); 108 fclose(fid); 123 109 end 124 110 %}}}
Note:
See TracChangeset
for help on using the changeset viewer.