Changeset 23894


Ignore:
Timestamp:
04/25/19 10:23:21 (6 years ago)
Author:
tsantos
Message:

CHG: updating some commands in cluster/greenplanet.m

File:
1 edited

Legend:

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

    r21576 r23894  
    5656                 function md = checkconsistency(cluster,md,solution,analyses) % {{{
    5757
    58                          available_queues={'c6145','default'};
     58                         available_queues={'c6145','ilg2.3','default'};
    5959                         queue_requirements_time=[Inf Inf];
    6060                         queue_requirements_np=[80 80];
     
    9494                 end
    9595                 %}}}
    96                  function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota) % {{{
     96                 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{
    9797
    9898                         if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end
     
    112112                         fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
    113113                         fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname);
    114                          fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
     114                         fprintf(fid,'mpiexec -n %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    115115                         if ~io_gather, %concatenate the output files:
    116116                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     
    121121                         if cluster.interactive,
    122122                                 fid=fopen([modelname '.run'],'w');
    123                                  fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
     123                                 fprintf(fid,'mpiexec -n %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    124124                                 if ~io_gather, %concatenate the output files:
    125125                                         fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     
    152152                         disp('launching solution sequence on remote cluster');
    153153                         if ~isempty(restart)
    154                                  launchcommand=['cd ' cluster.executionpath ' && cd ' dirname ' && hostname && qsub ' modelname '.queue '];
     154                                 launchcommand=['cd ' cluster.executionpath ' && cd ' dirname ' && hostname && sbatch ' modelname '.queue '];
    155155                         else
    156156                                 launchcommand=['cd ' cluster.executionpath ' && rm -rf ./' dirname ' && mkdir ' dirname ...
    157                                          ' && cd ' dirname ' && mv ../' dirname '.tar.gz ./ && tar -zxf ' dirname '.tar.gz  && hostname && qsub ' modelname '.queue '];
     157                                         ' && cd ' dirname ' && mv ../' dirname '.tar.gz ./ && tar -zxf ' dirname '.tar.gz  && hostname && sbatch ' modelname '.queue '];
    158158                         end
    159159                         issmssh(cluster.name,cluster.login,cluster.port,launchcommand);
Note: See TracChangeset for help on using the changeset viewer.