Ignore:
Timestamp:
09/06/11 12:23:41 (14 years ago)
Author:
Mathieu Morlighem
Message:

Added classes/private.m class

File:
1 edited

Legend:

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

    r9571 r9614  
    5959                         %retrieve parameters
    6060                         modelname=md.name;
    61                          solution_type=md.solution_type;
     61                         solution_type=md.private.solution;
    6262
    6363                         %open file for writing:
     
    8787                         
    8888                         %lauch command, to be executed via ssh
    89                          launchcommand=['cd ' cluster.executionpath ' && rm -rf ./' md.runtimename ' && mkdir ' md.runtimename ...
    90                                         ' && cd ' md.runtimename ' && mv ../' md.runtimename '.tar.gz ./ && tar -zxf ' md.runtimename '.tar.gz  && qsub ' modelname '.queue '];
     89                         launchcommand=['cd ' cluster.executionpath ' && rm -rf ./' md.private.runtimename ' && mkdir ' md.private.runtimename ...
     90                                        ' && cd ' md.private.runtimename ' && mv ../' md.private.runtimename '.tar.gz ./ && tar -zxf ' md.private.runtimename '.tar.gz  && qsub ' modelname '.queue '];
    9191
    9292                        if ~strcmpi(options.batch,'yes'),
    9393                               
    9494                                %compress the files into one zip.
    95                                 compressstring=['tar -zcf ' md.runtimename '.tar.gz ' md.name '.bin ' md.name '.queue '  md.name '.petsc '];
     95                                compressstring=['tar -zcf ' md.private.runtimename '.tar.gz ' md.name '.bin ' md.name '.queue '  md.name '.petsc '];
    9696                                if md.dakota_analysis,
    9797                                        compressstring=[compressstring md.name '.qmu.in'];
     
    100100                               
    101101                                disp('uploading input file and queueing script');
    102                                 issmscpout(md.cluster.name,md.cluster.executionpath,md.cluster.login,md.cluster.port,{[md.runtimename '.tar.gz']});
     102                                issmscpout(md.cluster.name,md.cluster.executionpath,md.cluster.login,md.cluster.port,{[md.private.runtimename '.tar.gz']});
    103103                               
    104104                                disp('launching solution sequence on remote cluster');
     
    115115
    116116                        %some check
    117                         if isempty(md.runtimename),
     117                        if isempty(md.private.runtimename),
    118118                                error('pfe Download error message: supply runtime name for results to be loaded!');
    119119                        end
    120120
    121121                        %Figure out the  directory where all the files are in:
    122                         directory=[cluster.executionpath '/' md.runtimename '/'];
     122                        directory=[cluster.executionpath '/' md.private.runtimename '/'];
    123123
    124124                        %What packages are we picking up from remote cluster
Note: See TracChangeset for help on using the changeset viewer.