Changeset 12370


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

Fixed download

Location:
issm/trunk-jpl/src/m/classes/clusters
Files:
4 edited

Legend:

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

    r12363 r12370  
    7979                 end
    8080                 %}}}
    81                  function LaunchQueueJob(cluster,md,options)% {{{
    82                           %retrieve parameters
    83           modelname=md.miscellaneous.name;
    84           solution=md.private.solution;
     81                 function LaunchQueueJob(cluster,modelname,dirname,filelist)% {{{
    8582
    86                          %lauch command, to be executed via ssh
    87                          launchcommand=['cd ' cluster.executionpath ' && rm -rf ./' md.private.runtimename ' && mkdir ' md.private.runtimename ...
    88                                         ' && cd ' md.private.runtimename ' && mv ../' md.private.runtimename '.tar.gz ./ && tar -zxf ' md.private.runtimename '.tar.gz  && qsub ' modelname '.queue '];
     83                         %compress the files into one zip.
     84                         compressstring=['tar -zcf ' dirname '.tar.gz ' modelname '.bin ' modelname '.queue '  modelname '.petsc '];
     85                         for i=1:numel(filelist),
     86                                 compressstring = [compressstring ' ' filelist{i}];
     87                         end
     88                         if cluster.interactive,
     89                                 compressstring = [compressstring ' ' modelname '.errlog ' modelname '.outlog '];
     90                         end
     91                         system(compressstring);
    8992
    90                         if ~strcmpi(options.batch,'yes'),
    91                                
    92                                 %compress the files into one zip.
    93                                 compressstring=['tar -zcf ' md.private.runtimename '.tar.gz ' md.miscellaneous.name '.bin ' md.miscellaneous.name '.queue '  md.miscellaneous.name '.petsc '];
    94                                 if md.qmu.isdakota,
    95                                         compressstring=[compressstring md.miscellaneous.name '.qmu.in'];
    96                                 end
    97                                 system(compressstring);
    98                                
    99                                 disp('uploading input file and queueing script');
    100                                 issmscpout(md.cluster.name,md.cluster.executionpath,md.cluster.login,md.cluster.port,{[md.private.runtimename '.tar.gz']});
    101                                
    102                                 disp('launching solution sequence on remote cluster');
    103                                 issmssh(md.cluster.name,md.cluster.login,md.cluster.port,launchcommand);
     93                         disp('uploading input file and queueing script');
     94                         issmscpout(cluster.name,cluster.executionpath,cluster.login,cluster.port,{[dirname '.tar.gz']});
    10495
    105                         else
    106                                 disp('batch mode requested: not launching job interactively');
    107                                 disp('launch solution sequence on remote cluster by hand');
    108                         end
    109 
    110                  end
    111                  %}}}
     96                         disp('launching solution sequence on remote cluster');
     97                         launchcommand=['cd ' cluster.executionpath ' && rm -rf ./' dirname ' && mkdir ' dirname ...
     98                                 ' && cd ' dirname ' && mv ../' dirname '.tar.gz ./ && tar -zxf ' dirname '.tar.gz  && source  ' modelname '.queue '];
     99                         issmssh(cluster.name,cluster.login,cluster.port,launchcommand);
     100                 end %}}}
    112101                 function Download(cluster,dirname,filelist)% {{{
    113102
  • issm/trunk-jpl/src/m/classes/clusters/castor.m

    r12363 r12370  
    9898                 end
    9999                 %}}}
     100                 function LaunchQueueJob(cluster,modelname,dirname,filelist)% {{{
     101
     102                         %compress the files into one zip.
     103                         compressstring=['tar -zcf ' dirname '.tar.gz '];
     104                         for i=1:numel(filelist),
     105                                 compressstring = [compressstring ' ' filelist{i}];
     106                         end
     107                         if cluster.interactive,
     108                                 compressstring = [compressstring ' ' modelname '.errlog ' modelname '.outlog '];
     109                         end
     110                         system(compressstring);
     111
     112                         disp('uploading input file and queueing script');
     113                         issmscpout(cluster.name,cluster.executionpath,cluster.login,cluster.port,{[dirname '.tar.gz']});
     114
     115                         disp('launching solution sequence on remote cluster');
     116                         launchcommand=['cd ' cluster.executionpath ' && rm -rf ./' dirname ' && mkdir ' dirname ...
     117                                 ' && cd ' dirname ' && mv ../' dirname '.tar.gz ./ && tar -zxf ' dirname '.tar.gz  && source  ' modelname '.queue '];
     118                         issmssh(cluster.name,cluster.login,cluster.port,launchcommand);
     119                 end %}}}
    100120                 function Download(cluster,dirname,filelist)% {{{
    101121
  • issm/trunk-jpl/src/m/classes/clusters/generic.m

    r12363 r12370  
    114114
    115115                         %compress the files into one zip.
    116                          compressstring=['tar -zcf ' dirname '.tar.gz ' modelname '.bin ' modelname '.queue '  modelname '.petsc '];
     116                         compressstring=['tar -zcf ' dirname '.tar.gz '];
    117117                         for i=1:numel(filelist),
    118118                                 compressstring = [compressstring ' ' filelist{i}];
  • issm/trunk-jpl/src/m/classes/clusters/pfe.m

    r12369 r12370  
    148148
    149149                         %compress the files into one zip.
    150                          compressstring=['tar -zcf ' dirname '.tar.gz ' modelname '.bin ' modelname '.queue '  modelname '.petsc '];
     150                         compressstring=['tar -zcf ' dirname '.tar.gz '];
    151151                         for i=1:numel(filelist),
    152152                                 compressstring = [compressstring ' ' filelist{i}];
     
    192192
    193193                         if ~cluster.bbftp,
    194                                  issmscpin(cluster.name, cluster.login, cluster.port, directory, packages);
    195                          else
    196                                  issmbbftpin(cluster.name, cluster.login, cluster.port, cluster.numstreams, directory, packages);
     194                                 issmscpin(cluster.name,cluster.login,cluster.port,directory,filelist);
     195                         else
     196                                 issmbbftpin(cluster.name, cluster.login, cluster.port, cluster.numstreams, directory, filelist);
    197197                         end
    198198
Note: See TracChangeset for help on using the changeset viewer.