Changeset 2889


Ignore:
Timestamp:
01/22/10 07:21:57 (15 years ago)
Author:
Eric.Larour
Message:

Added multisolve capability, with corresponding queue/ scripts.
Added modelsextract.m capability, to extract multiple models.
Added loadmultipleresultsfromcluster, to load result from a list of model results.

Location:
issm/trunk/src/m/classes/public
Files:
8 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/multisolve.m

    r2881 r2889  
    1414%      md_list=solve(md_list,'analysis_type','thermal');
    1515
     16%recover options
     17options=pairoptions(varargin{:});
     18
     19%add default options
     20options=process_solve_options(options);
     21
    1622%length of list
    1723nummodels=length(md_list);
     24
     25%name of queue will be first name of list
     26name=md_list{1}.name;
     27
     28%name of cluster will be first name of list
     29cluster=md_list{1}.cluster;
     30
     31%Figure out parameters for this particular cluster
     32cluster_rc_location=which('cluster.rc');
     33[codepath,executionpath]=ClusterParameters(cluster,cluster_rc_location);
    1834
    1935%solve in batch mode:
     
    2238        %model
    2339        md=md_list{i};
    24         md.name=[md.name '_' num2str(i) 'vs' num2str(nummodels)];
     40       
     41        %recover some fields
     42        md.analysis_type=options.analysis_type;
     43        md.sub_analysis_type=options.sub_analysis_type;
     44
     45        md.name=[name '_' num2str(i) 'vs' num2str(nummodels)];
    2546
    2647        %call solve in batch mode:
    2748        md=solve(md,varargin{:},'batch','yes');
     49
     50        %feed back
     51        md_list{i}=md;
    2852end
    2953
     
    3458
    3559%still have to build a launching script.
     60BuildMultipleQueueingScript(cluster,name,executionpath,codepath);
    3661
    37 %now, send to cluster and solve
     62%launch jobs on remote cluster
     63LaunchMultipleQueueJob(cluster,name,executionpath);
     64
     65%erase files:
     66delete([name '.queue']);
     67delete('ModelList.tar.gz');
Note: See TracChangeset for help on using the changeset viewer.