Changeset 2889
- Timestamp:
- 01/22/10 07:21:57 (15 years ago)
- 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 14 14 % md_list=solve(md_list,'analysis_type','thermal'); 15 15 16 %recover options 17 options=pairoptions(varargin{:}); 18 19 %add default options 20 options=process_solve_options(options); 21 16 22 %length of list 17 23 nummodels=length(md_list); 24 25 %name of queue will be first name of list 26 name=md_list{1}.name; 27 28 %name of cluster will be first name of list 29 cluster=md_list{1}.cluster; 30 31 %Figure out parameters for this particular cluster 32 cluster_rc_location=which('cluster.rc'); 33 [codepath,executionpath]=ClusterParameters(cluster,cluster_rc_location); 18 34 19 35 %solve in batch mode: … … 22 38 %model 23 39 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)]; 25 46 26 47 %call solve in batch mode: 27 48 md=solve(md,varargin{:},'batch','yes'); 49 50 %feed back 51 md_list{i}=md; 28 52 end 29 53 … … 34 58 35 59 %still have to build a launching script. 60 BuildMultipleQueueingScript(cluster,name,executionpath,codepath); 36 61 37 %now, send to cluster and solve 62 %launch jobs on remote cluster 63 LaunchMultipleQueueJob(cluster,name,executionpath); 64 65 %erase files: 66 delete([name '.queue']); 67 delete('ModelList.tar.gz');
Note:
See TracChangeset
for help on using the changeset viewer.