Changeset 20536


Ignore:
Timestamp:
04/22/16 11:54:40 (9 years ago)
Author:
schlegel
Message:

CHG: add dakota 6 exec to generic_static

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/clusters/generic_static.m

    r20376 r20536  
    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
Note: See TracChangeset for help on using the changeset viewer.