Ignore:
Timestamp:
06/04/12 14:36:57 (13 years ago)
Author:
Mathieu Morlighem
Message:

Simplifying cluster

File:
1 edited

Legend:

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

    r12351 r12363  
    9898                 end
    9999                 %}}}
    100                  function Download(cluster,md)% {{{
     100                 function Download(cluster,dirname,filelist)% {{{
    101101
    102                         %some check
    103                         if isempty(md.private.runtimename),
    104                                 error('pfe Download error message: supply runtime name for results to be loaded!');
    105                         end
     102                         %copy files from cluster to current directory
     103                         directory=[cluster.executionpath '/' dirname '/'];
     104                         issmscpin(cluster.name,cluster.login,cluster.port,directory,filelist);
    106105
    107                         %Figure out the  directory where all the files are in:
    108                         directory=[cluster.executionpath '/' md.private.runtimename '/'];
    109 
    110                         %What packages are we picking up from remote cluster
    111                         packages={[md.miscellaneous.name '.outlog'],[md.miscellaneous.name '.errlog']};
    112                         if md.qmu.isdakota,
    113                                 packages{end+1}=[md.miscellaneous.name '.qmu.err'];
    114                                 packages{end+1}=[md.miscellaneous.name '.qmu.out'];
    115                                 if isfield(md.qmu.params,'tabular_graphics_data'),
    116                                         if md.qmu.params.tabular_graphics_data==true,
    117                                                 packages{end+1}='dakota_tabular.dat';
    118                                         end
    119                                 end
    120                         else
    121                                 packages{end+1}=[md.miscellaneous.name '.outbin'];
    122                         end
    123 
    124                         %copy files from cluster to present directory
    125                         issmscpin(cluster.name, cluster.login, cluster.port, directory, packages);
    126                 end %}}}
     106                 end %}}}
    127107        end
    128108end
Note: See TracChangeset for help on using the changeset viewer.