Changeset 12372
- Timestamp:
- 06/05/12 10:46:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/castor.m
r12371 r12372 70 70 end 71 71 %}}} 72 function LaunchQueueJob(cluster,md,options)% {{{73 74 %lauch command, to be executed via ssh75 launchcommand=['cd ' cluster.executionpath ' && rm -rf ./' md.private.runtimename ' && mkdir ' md.private.runtimename ...76 ' && cd ' md.private.runtimename ' && mv ../' md.private.runtimename '.tar.gz ./ && tar -zxf ' md.private.runtimename '.tar.gz && qsub ' modelname '.queue '];77 78 if ~strcmpi(options.batch,'yes'),79 80 %compress the files into one zip.81 compressstring=['tar -zcf ' md.private.runtimename '.tar.gz ' md.miscellaneous.name '.bin ' md.miscellaneous.name '.queue ' md.miscellaneous.name '.petsc '];82 if md.qmu.isdakota,83 compressstring=[compressstring md.miscellaneous.name '.qmu.in'];84 end85 system(compressstring);86 87 disp('uploading input file and queueing script');88 issmscpout(md.cluster.name,md.cluster.executionpath,md.cluster.login,md.cluster.port,{[md.private.runtimename '.tar.gz']});89 90 disp('launching solution sequence on remote cluster');91 issmssh(md.cluster.name,md.cluster.login,md.cluster.port,launchcommand);92 93 else94 disp('batch mode requested: not launching job interactively');95 disp('launch solution sequence on remote cluster by hand');96 end97 98 end99 %}}}100 72 function LaunchQueueJob(cluster,modelname,dirname,filelist)% {{{ 101 73
Note:
See TracChangeset
for help on using the changeset viewer.