Changeset 2095


Ignore:
Timestamp:
09/02/09 16:30:09 (15 years ago)
Author:
Mathieu Morlighem
Message:

fixed resultcheck

File:
1 edited

Legend:

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

    r1651 r2095  
    2626
    2727%DIAGNOSTIC
    28 if analysis_type==DiagnosticAnalysisEnum(),
     28if analysis_type==DiagnosticAnalysisEnum() & md.control_analysis==0,
    2929
    3030        if strcmpi(md.type,'3d')
     
    5959
    6060%CONTROL
    61 if analysis_type==ControlAnalysisEnum(),
    62 
    63         fields1={'results.control.vx','results.control.vy','results.control.vel','results.control.parameter'};
    64         fields2={'results.control.vel','results.control.J'};
     61if analysis_type==DiagnosticAnalysisEnum() & md.control_analysis==1,
     62
     63        fields1={'results.diagnostic.vx','results.diagnostic.vy','results.diagnostic.vel','results.diagnostic.parameter'};
     64        fields2={'results.diagnostic.vel','results.diagnostic.J'};
    6565
    6666        %check size
     
    8686        %check inversed parameter
    8787        if ~isnan(md.maxcontrolconstraint),
    88                 if any(md.results.control.parameter>md.maxcontrolconstraint)
     88                if any(md.results.diagnostic.parameter>md.maxdiagnosticconstraint)
    8989                        disp(['''control'' result not consistent: inverse parameter is greater than ' num2str(md.maxcontrolconstraint)]);
    9090                        bool=0; return;
     
    9292        end
    9393        if ~isnan(md.mincontrolconstraint),
    94                 if any(md.results.control.parameter<md.mincontrolconstraint)
     94                if any(md.results.diagnostic.parameter<md.mindiagnosticconstraint)
    9595                        disp(['''control'' result not consistent: inverse parameter is smaller than ' num2str(md.mincontrolconstraint)]);
    9696                        bool=0; return;
Note: See TracChangeset for help on using the changeset viewer.