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

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

CHG: new quick sync to fix examples in trunk

File size: 1.1 KB
  • ../trunk-jpl/src/m/classes/clusters/generic_static.m

     
    5050                %}}}
    5151                function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota) % {{{
    5252
     53                        %write queuing script
     54                        %what is the executable being called?
     55                        executable='issm.exe';
     56                        if isdakota,
     57                                version=IssmConfig('_DAKOTA_VERSION_'); version=str2num(version(1:3));
     58                                if (version>=6),
     59                                        executable='issm_dakota.exe';
     60                                end
     61                        end
     62
    5363                        %write queuing script
    5464                        fid=fopen([modelname '.queue'],'w');
    5565                        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);
     66                        fprintf(fid,[cluster.codepath '/mpiexec -np %i %s/%s %s %s %s \n'],cluster.np,cluster.codepath,executable,EnumToString(solution),'./',modelname);
    5767                        fclose(fid);
    5868
    5969                        %in interactive mode, create a run file, and errlog and outlog file
Note: See TracBrowser for help on using the repository browser.