Changeset 5979


Ignore:
Timestamp:
09/23/10 08:44:02 (14 years ago)
Author:
Eric.Larour
Message:

Fixed missing petscrc retrieval in serial model in Solverx.
Added upload capability to solver.

Location:
issm/trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/Solverx/Solverx.cpp

    r5975 r5979  
    5656         * using the petscrc string recover in the parameters: */
    5757        #ifdef _SERIAL_
     58               
     59                parameters->FindParam(&petscrc,PetscRcEnum);
    5860                PetscOptionsInsertMultipleString(petscrc);
    5961
  • issm/trunk/src/m/model/LaunchQueueJob.m

    r5963 r5979  
    3030        issmscpout(md.cluster.name,md.cluster.executionpath,md.cluster.login,md.cluster.port,{[md.runtimename '.tar.gz']});
    3131
    32         disp('launching solution sequence on remote cluster');
    33         issmssh(md.cluster.name,md.cluster.login,md.cluster.port,LaunchCommand(md.cluster,md.runtimename,md.name));
     32        if strcmpi(options.upload,'off'),
     33                disp('launching solution sequence on remote cluster');
     34                issmssh(md.cluster.name,md.cluster.login,md.cluster.port,LaunchCommand(md.cluster,md.runtimename,md.name));
     35        end
    3436
    3537else
  • issm/trunk/src/m/model/process_solve_options.m

    r5646 r5979  
    3434outoptions.analysis_type=analysis_type;
    3535outoptions.sub_analysis_type=sub_analysis_type;
     36outoptions.upload=getfieldvalue(options,'upload','off');
    3637
    3738%  process qmu arguments
  • issm/trunk/src/m/model/solveparallel.m

    r5965 r5979  
    2424LaunchQueueJob(md,options);
    2525
    26 %Do we return, or just wait for results?
    27 if (md.waitonlock~=0 &  ~strcmpi(options.batch,'yes')),
    28         %we wait for the done file
    29         islock=waitonlock(md);
    30         if islock==0,
    31                 %no results to be loaded
    32                 disp('The results must be loaded manually with md=loadresultsfromcluster(md).');
    33         else
    34                 %load results
    35                 displaystring(md.verbose,'loading results from cluster');
    36                 md=loadresultsfromcluster(md);
     26if ~strcmpi(options.upload,'on'), %did we even try to run? if so, wait on lock
     27
     28        %Do we return, or just wait for results?
     29        if (md.waitonlock~=0 &  ~strcmpi(options.batch,'yes')),
     30                %we wait for the done file
     31                islock=waitonlock(md);
     32                if islock==0,
     33                        %no results to be loaded
     34                        disp('The results must be loaded manually with md=loadresultsfromcluster(md).');
     35                else
     36                        %load results
     37                        displaystring(md.verbose,'loading results from cluster');
     38                        md=loadresultsfromcluster(md);
     39                end
     40        end
     41
     42        %post processes qmu results if necessary
     43        if md.qmu_analysis,
     44                system(['rm -rf qmu' num2str(GetPId)]);
    3745        end
    3846end
    3947
    40 %post processes qmu results if necessary
    41 if md.qmu_analysis,
    42         system(['rm -rf qmu' num2str(GetPId)]);
    43 end
    4448
    45 
Note: See TracChangeset for help on using the changeset viewer.