Changeset 2901
- Timestamp:
- 01/25/10 08:12:56 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/loadresultsfromcluster.m
r2900 r2901 37 37 38 38 %erase the log and output files 39 delete([md.name '.outlog']); 40 delete([md.name '.errlog']); 41 delete([md.name '.outbin']); 39 if md.qmu_analysis, 40 delete(['qmu/' md.name '.outlog']); 41 delete(['qmu/' md.name '.errlog']); 42 else 43 delete([md.name '.outlog']); 44 delete([md.name '.errlog']); 45 delete([md.name '.outbin']); 46 end 42 47 43 48 %erase input file if run was carried out on same platform. 44 49 hostname=oshostname(); 45 50 if strcmpi(hostname,md.cluster), 46 delete([md.name '.bin']); 47 delete([md.name '.queue']); 51 if md.qmu_analysis, 52 delete(['qmu/' md.name '.bin']); 53 delete(['qmu/' md.name '.queue']); 54 else 55 delete([md.name '.bin']); 56 delete([md.name '.queue']); 57 end 48 58 end 49 59 -
issm/trunk/src/m/classes/public/loadresultsfromdisk.m
r2896 r2901 12 12 13 13 if ~md.qmu_analysis, 14 %load result onto model 14 15 %initialize md.results if not a structure yet 15 16 if ~isstruct(md.results), 16 17 md.results=struct(); 17 18 end 18 19 20 %load results onto model 19 21 structure=parseresultsfromdisk(filename); 20 22 md.results.(structure.analysis_type)=structure; 23 24 %recover analysis_type from results 25 md.analysis_type=structure(1).analysis_type; 26 if isscalar(md.sub_analysis_type), 27 md.sub_analysis_type=AnalysisTypeFromEnum(md.sub_analysis_type); 28 end 21 29 22 30 %Check result is consistent, only if it exists 23 31 disp(sprintf('%s\n','checking result consistency')); 24 32 if ~isresultconsistent(md,structure(1).analysis_type), 25 %it would be very cruel to put an error, it would kill the computed results (even ifnot consistent...)33 %it would be very cruel to use an error, it would kill the computed results (although they are not consistent...) 26 34 disp('!! results not consistent correct the model !!') 27 35 end 28 end29 30 %recover analysis_type from results31 md.analysis_type=structure(1).analysis_type;32 if isscalar(md.sub_analysis_type),33 md.sub_analysis_type=AnalysisTypeFromEnum(md.sub_analysis_type);34 end35 36 36 37 %post processes qmu results if necessary 37 if md.qmu_analysis, 38 else 39 40 md.analysis_type =AnalysisTypeFromEnum(md.analysis_type); 41 md.sub_analysis_type=AnalysisTypeFromEnum(md.sub_analysis_type); 38 42 md=postqmu(md); 39 43 cd .. 44 40 45 end -
issm/trunk/src/m/classes/public/solveparallel.m
r2689 r2901 26 26 27 27 %Do we return, or just wait for results? 28 if md.waitonlock~=0 & ~strcmpi(options.batch,'yes'),28 if (md.waitonlock~=0 & ~strcmpi(options.batch,'yes')), 29 29 %we wait for the done file 30 30 islock=waitonlock(md,executionpath);
Note:
See TracChangeset
for help on using the changeset viewer.