Ignore:
Timestamp:
06/04/09 18:08:18 (16 years ago)
Author:
Eric.Larour
Message:

Stabilized dakota pluging in core dakota solution

File:
1 edited

Legend:

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

    r771 r804  
    1212
    1313%load result onto model
    14 if isnan(md.results), md.results=struct(); end
     14if ~isstruct(md.results),
     15        if isnan(md.results), md.results=struct(); end
     16end
    1517eval(['md.results.' md.analysis_type '=parseresultsfromdisk(filename);']);
    1618
    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
     20if ~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
    2226end
     27
     28%deal with qmu results
     29if md.qmu_analysis,
     30        md=qmuoutput(md,md.name,'qmu');
     31end
Note: See TracChangeset for help on using the changeset viewer.