Changeset 4848 for issm/trunk


Ignore:
Timestamp:
07/28/10 15:56:13 (15 years ago)
Author:
seroussi
Message:

name in md.control_type

Location:
issm/trunk/src/m/classes/public
Files:
2 edited

Legend:

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

    r3203 r4848  
    1111disp(sprintf('   Control solution parameters:\n'));
    1212if md.control_analysis,
    13         fielddisplay(md,'control_type','parameter where inverse control is carried out; ex: ''drag'', or ''B'')');
     13        fielddisplay(md,'control_type','parameter where inverse control is carried out; ex: ''drag_coefficient'', or ''rheology_B'')');
    1414        fielddisplay(md,'weights','weights applied to the misfit of each node');
    1515        fielddisplay(md,'nsteps','number of optimization searches');
  • issm/trunk/src/m/classes/public/ismodelselfconsistent.m

    r4796 r4848  
    347347        if ~ischar(md.control_type),
    348348                error('model not consistent: control_type should be a string');
     349        end
     350        if ~(strcmpi(md.control_type,'rheology_B') | strcmpi(md.control_type,'drag_coefficient')),
     351                error('model not consistent: control_type should be rheology_B or drag_coefficient');
    349352        end
    350353
Note: See TracChangeset for help on using the changeset viewer.