Changeset 20544
- Timestamp:
- 04/25/16 09:54:50 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/generic_static.m
r20536 r20544 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 53 61 %write queuing script 54 62 %what is the executable being called? … … 64 72 fid=fopen([modelname '.queue'],'w'); 65 73 fprintf(fid,'#!%s\n',cluster.shell); 66 fprintf(fid,[ cluster.codepath '/mpiexec -np %i %s/%s %s %s %s \n'],cluster.np,cluster.codepath,executable,EnumToString(solution),'./',modelname);74 fprintf(fid,['%s/mpiexec -np %i %s/%s %s %s %s \n'],codepath2,cluster.np,codepath2,executable,EnumToString(solution),'./',modelname); 67 75 fclose(fid); 68 76
Note:
See TracChangeset
for help on using the changeset viewer.