Changeset 20548 for issm/trunk/src/m/classes/clusters/generic_static.m
- Timestamp:
- 04/25/16 10:08:11 (9 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 20501-20506,20508-20509,20511-20544
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
/issm/trunk-jpl/src merged: 20501-20503,20505,20511-20520,20522-20524,20526,20528-20531,20533-20542,20544
- Property svn:mergeinfo changed
-
issm/trunk/src/m/classes/clusters/generic_static.m
r20500 r20548 51 51 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota) % {{{ 52 52 53 %Check that issm.exe exists in the right path 54 if ~exist([cluster.codepath '/issm.exe'],'file'), 55 error(['File ' cluster.codepath '/issm.exe does not exist']); 56 end 57 58 %Now process codepath and replace empty spaces with \ to avoid errors in queuing script 59 codepath2=strrep(cluster.codepath,' ','\ '); 60 61 %write queuing script 62 %what is the executable being called? 63 executable='issm.exe'; 64 if isdakota, 65 version=IssmConfig('_DAKOTA_VERSION_'); version=str2num(version(1:3)); 66 if (version>=6), 67 executable='issm_dakota.exe'; 68 end 69 end 70 53 71 %write queuing script 54 72 fid=fopen([modelname '.queue'],'w'); 55 73 fprintf(fid,'#!%s\n',cluster.shell); 56 fprintf(fid,[ cluster.codepath '/mpiexec -np %i %s/issm.exe %s %s %s \n'],cluster.np,cluster.codepath,EnumToString(solution),'./',modelname);74 fprintf(fid,['%s/mpiexec -np %i %s/%s %s %s %s \n'],codepath2,cluster.np,codepath2,executable,EnumToString(solution),'./',modelname); 57 75 fclose(fid); 58 76
Note:
See TracChangeset
for help on using the changeset viewer.