source: issm/oecreview/Archive/20496-20544/ISSM-20535-20536.diff

Last change on this file was 20545, checked in by Mathieu Morlighem, 9 years ago

CHG: new quick sync to fix examples in trunk

File size: 1.1 KB
RevLine 
[20545]1Index: ../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
Note: See TracBrowser for help on using the repository browser.