Changeset 804 for issm/trunk/src/m/classes/public/loadresultsfromdisk.m
- Timestamp:
- 06/04/09 18:08:18 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/loadresultsfromdisk.m
r771 r804 12 12 13 13 %load result onto model 14 if isnan(md.results), md.results=struct(); end 14 if ~isstruct(md.results), 15 if isnan(md.results), md.results=struct(); end 16 end 15 17 eval(['md.results.' md.analysis_type '=parseresultsfromdisk(filename);']); 16 18 17 %Check result is consistent 18 disp(sprintf('%s\n','checking result consistency')); 19 if ~isresultconsistent(md,md.analysis_type), 20 %it would be very cruel to put an error, it would kill the computed results (even if not consistent...) 21 disp('!! results not consistent correct the model !!') 19 %Check result is consistent, only if it exists 20 if ~isempty(md.results.diagnostic), 21 disp(sprintf('%s\n','checking result consistency')); 22 if ~isresultconsistent(md,md.analysis_type), 23 %it would be very cruel to put an error, it would kill the computed results (even if not consistent...) 24 disp('!! results not consistent correct the model !!') 25 end 22 26 end 27 28 %deal with qmu results 29 if md.qmu_analysis, 30 md=qmuoutput(md,md.name,'qmu'); 31 end
Note:
See TracChangeset
for help on using the changeset viewer.