Changeset 2952


Ignore:
Timestamp:
02/03/10 23:16:51 (15 years ago)
Author:
Eric.Larour
Message:

Weirdest bug in solve.m, still don't understand it. Renamed md to model, so that
this routine does not modify the model md from which the list of models was extracted -> don't ask,
makes no sense.

loadmultipleresultsfromcluster: load list of results.

Location:
issm/trunk/src/m/classes/@modellist
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/@modellist/solve.m

    r2912 r2952  
    3737
    3838        %model
    39         md=mds.models{i};
     39        mdex=mds.models{i};
    4040       
    4141        %recover some fields
    42         md.analysis_type=options.analysis_type;
    43         md.sub_analysis_type=options.sub_analysis_type;
     42        mdex.analysis_type=options.analysis_type;
     43        mdex.sub_analysis_type=options.sub_analysis_type;
    4444
    45         md.name=[name '-' num2str(i) 'vs' num2str(nummodels)];
    46         md.time=mds.time;
    47         md.queue=mds.queue;
    48         md.cluster=mds.cluster;
     45        mdex.name=[name '-' num2str(i) 'vs' num2str(nummodels)];
     46        mdex.time=mds.time;
     47        mdex.queue=mds.queue;
     48        mdex.cluster=mds.cluster;
    4949        if ~isnan(mds.np),
    50                 md.np=mds.np;
     50                mdex.np=mds.np;
    5151        end
    5252
    5353        %call solve in batch mode:
    54         md=solve(md,varargin{:},'batch','yes','directory',name);
     54        if strcmpi(cluster,oshostname),
     55                mdex=solve(mdex,varargin{:});
     56        else
     57                mdex=solve(mdex,varargin{:},'batch','yes','directory',name);
     58        end
    5559
    5660        %feed back
    57         mds.models{i}=md;
     61        mds.models{i}=mdex;
    5862end
     63
     64%locally, we are done.
     65if strcmpi(cluster,oshostname),
     66        return
     67end
     68
    5969
    6070%now, tar all the files and then erase them.
     
    7282delete([name '.queue']);
    7383delete('ModelList.tar.gz');
     84
     85%save name:
     86mds.name=name;
Note: See TracChangeset for help on using the changeset viewer.