Changeset 12372


Ignore:
Timestamp:
06/05/12 10:46:58 (13 years ago)
Author:
Mathieu Morlighem
Message:

double LaunchQueueJob

File:
1 edited

Legend:

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

    r12371 r12372  
    7070                 end
    7171                 %}}}
    72                  function LaunchQueueJob(cluster,md,options)% {{{
    73                          
    74                          %lauch command, to be executed via ssh
    75                          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                                 end
    85                                 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                         else
    94                                 disp('batch mode requested: not launching job interactively');
    95                                 disp('launch solution sequence on remote cluster by hand');
    96                         end
    97 
    98                  end
    99                  %}}}
    10072                 function LaunchQueueJob(cluster,modelname,dirname,filelist)% {{{
    10173
Note: See TracChangeset for help on using the changeset viewer.