Changeset 7984
- Timestamp:
- 04/19/11 15:03:12 (14 years ago)
- Location:
- issm/trunk/src/m
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/clusters/astrid.m
r7631 r7984 13 13 np=15; 14 14 port=0; 15 interactive=1; 15 16 codepath=[issmtier() '/bin']; 16 17 executionpath=[issmdir() '/execution']; … … 76 77 fprintf(fid,'#!/bin/sh\n'); 77 78 if mem_debug==0, 78 fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock 2> %s.errlog >%s.outlog ',cluster.np,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname); 79 if cluster.interactive 80 fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock ',... 81 cluster.np,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname); 82 else 83 fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock 2> %s.errlog >%s.outlog ',... 84 cluster.np,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname); 85 end 79 86 else 80 87 %fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --gen-suppressions=all --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock 2> %s.errlog >%s.outlog ',cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname); 81 fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock 2> %s.errlog >%s.outlog ',cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup, cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname); 88 fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock 2> %s.errlog >%s.outlog ',... 89 cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup, cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname); 82 90 end 83 91 … … 91 99 end 92 100 93 %close file 94 fclose(fid); 101 %in interactive mode, create a run file, and errlog and outlog file 102 if cluster.interactive, 103 fid=fopen([modelname '.errlog'],'w'); fclose(fid); 104 fid=fopen([modelname '.outlog'],'w'); fclose(fid); 105 end 95 106 96 107 end … … 108 119 if md.qmu_analysis, 109 120 compressstring=[compressstring md.name '.qmu.in']; 121 end 122 if cluster.interactive, 123 compressstring=[compressstring ' ' md.name '.errlog ' md.name '.outlog ']; 110 124 end 111 125 system(compressstring); -
issm/trunk/src/m/classes/clusters/larsen.m
r7631 r7984 13 13 np=7; 14 14 port=0; 15 interactive=1; 15 16 codepath=[issmtier() '/bin']; 16 17 executionpath=[issmdir() '/execution']; … … 70 71 fprintf(fid,'#!/bin/sh\n'); 71 72 if mem_debug==0, 72 fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock 2> %s.errlog >%s.outlog & ',cluster.np,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname); 73 if cluster.interactive 74 fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock',... 75 cluster.np,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,); 76 else 77 fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock 2> %s.errlog >%s.outlog & ',... 78 cluster.np,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname); 79 end 73 80 else 74 81 %fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --gen-suppressions=all --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock 2> %s.errlog >%s.outlog & ',cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname); 75 fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock 2> %s.errlog >%s.outlog & ',cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup, cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname); 82 fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock 2> %s.errlog >%s.outlog & ',... 83 cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup, cluster.codepath,EnumToString(solution_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname); 76 84 end 77 85 … … 79 87 fprintf(fid,'\n gprof %s/issm.exe gmon.out > %s.performance',cluster.codepath,modelname); 80 88 end 81 82 %close file83 89 fclose(fid); 84 90 91 %in interactive mode, create a run file, and errlog and outlog file 92 if cluster.interactive, 93 fid=fopen([modelname '.errlog'],'w'); fclose(fid); 94 fid=fopen([modelname '.outlog'],'w'); fclose(fid); 95 end 85 96 end 86 97 %}}} … … 97 108 if md.qmu_analysis, 98 109 compressstring=[compressstring md.name '.qmu.in']; 110 end 111 if cluster.interactive, 112 compressstring=[compressstring ' ' md.name '.errlog ' md.name '.outlog ']; 99 113 end 100 114 system(compressstring); -
issm/trunk/src/m/model/waitonlock.m
r6378 r7984 31 31 else 32 32 33 if ismember('interactive',properties(md.cluster)) & md.cluster.interactive 34 %We are in interactive mode, no need to check for job completion 35 flag=1; 36 return; 37 end 33 38 %initialize time and file presence test flag 34 39 time=0; ispresent=0;
Note:
See TracChangeset
for help on using the changeset viewer.