[20545] | 1 | Index: ../trunk-jpl/src/m/classes/clusters/generic_static.m
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/classes/clusters/generic_static.m (revision 20535)
|
---|
| 4 | +++ ../trunk-jpl/src/m/classes/clusters/generic_static.m (revision 20536)
|
---|
| 5 | @@ -50,10 +50,20 @@
|
---|
| 6 | %}}}
|
---|
| 7 | function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota) % {{{
|
---|
| 8 |
|
---|
| 9 | + %write queuing script
|
---|
| 10 | + %what is the executable being called?
|
---|
| 11 | + executable='issm.exe';
|
---|
| 12 | + if isdakota,
|
---|
| 13 | + version=IssmConfig('_DAKOTA_VERSION_'); version=str2num(version(1:3));
|
---|
| 14 | + if (version>=6),
|
---|
| 15 | + executable='issm_dakota.exe';
|
---|
| 16 | + end
|
---|
| 17 | + end
|
---|
| 18 | +
|
---|
| 19 | %write queuing script
|
---|
| 20 | fid=fopen([modelname '.queue'],'w');
|
---|
| 21 | fprintf(fid,'#!%s\n',cluster.shell);
|
---|
| 22 | - fprintf(fid,[cluster.codepath '/mpiexec -np %i %s/issm.exe %s %s %s \n'],cluster.np,cluster.codepath,EnumToString(solution),'./',modelname);
|
---|
| 23 | + fprintf(fid,[cluster.codepath '/mpiexec -np %i %s/%s %s %s %s \n'],cluster.np,cluster.codepath,executable,EnumToString(solution),'./',modelname);
|
---|
| 24 | fclose(fid);
|
---|
| 25 |
|
---|
| 26 | %in interactive mode, create a run file, and errlog and outlog file
|
---|