Changeset 27922
- Timestamp:
- 09/21/23 13:19:42 (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/localpfe.m
r27262 r27922 92 92 fclose(fid); 93 93 94 95 %in interactive mode, create a run file, and errlog and outlog file 96 if cluster.interactive, 94 %in interactive mode, create a run file, and errlog and outlog file 95 if cluster.interactive, 96 fid=fopen([modelname '.run'],'w'); 97 if cluster.interactive==10, 98 fprintf(fid,'module unload mpi-mvapich2/1.4.1/gcc\n'); 99 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[pwd() '/run'],modelname); 100 else 101 if ~isvalgrind, 102 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,cluster.executionpath,modelname); 103 %fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.nprocs(),cluster.codepath,executable,solution,[cluster.executionpath '/Interactive' num2str(cluster.interactive)],modelname); 104 else 105 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/Interactive' num2str(cluster.interactive)],modelname); 106 end 107 end 108 if ~io_gather, %concatenate the output files: 109 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); 110 end 111 fclose(fid); 112 97 113 fid=fopen([modelname '.errlog'],'w'); fclose(fid); 98 114 fid=fopen([modelname '.outlog'],'w'); fclose(fid); … … 224 240 end 225 241 if cluster.interactive, 226 compressstring = [compressstring ' ' modelname '. errlog ' modelname '.outlog '];242 compressstring = [compressstring ' ' modelname '.run ' modelname '.errlog ' modelname '.outlog ']; 227 243 end 228 244 system(compressstring);
Note:
See TracChangeset
for help on using the changeset viewer.