Changeset 23894
- Timestamp:
- 04/25/19 10:23:21 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/greenplanet.m
r21576 r23894 56 56 function md = checkconsistency(cluster,md,solution,analyses) % {{{ 57 57 58 available_queues={'c6145',' default'};58 available_queues={'c6145','ilg2.3','default'}; 59 59 queue_requirements_time=[Inf Inf]; 60 60 queue_requirements_np=[80 80]; … … 94 94 end 95 95 %}}} 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) % {{{ 97 97 98 98 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end … … 112 112 fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n'); %FIXME 113 113 fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname); 114 fprintf(fid,'mpiexec -n p%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); 115 115 if ~io_gather, %concatenate the output files: 116 116 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); … … 121 121 if cluster.interactive, 122 122 fid=fopen([modelname '.run'],'w'); 123 fprintf(fid,'mpiexec -n p%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); 124 124 if ~io_gather, %concatenate the output files: 125 125 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); … … 152 152 disp('launching solution sequence on remote cluster'); 153 153 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 ']; 155 155 else 156 156 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 ']; 158 158 end 159 159 issmssh(cluster.name,cluster.login,cluster.port,launchcommand);
Note:
See TracChangeset
for help on using the changeset viewer.