Changeset 2952
- Timestamp:
- 02/03/10 23:16:51 (15 years ago)
- 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 37 37 38 38 %model 39 md =mds.models{i};39 mdex=mds.models{i}; 40 40 41 41 %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; 44 44 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; 49 49 if ~isnan(mds.np), 50 md .np=mds.np;50 mdex.np=mds.np; 51 51 end 52 52 53 53 %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 55 59 56 60 %feed back 57 mds.models{i}=md ;61 mds.models{i}=mdex; 58 62 end 63 64 %locally, we are done. 65 if strcmpi(cluster,oshostname), 66 return 67 end 68 59 69 60 70 %now, tar all the files and then erase them. … … 72 82 delete([name '.queue']); 73 83 delete('ModelList.tar.gz'); 84 85 %save name: 86 mds.name=name;
Note:
See TracChangeset
for help on using the changeset viewer.