Changeset 1958


Ignore:
Timestamp:
08/26/09 15:10:05 (16 years ago)
Author:
Mathieu Morlighem
Message:

enable control macayeal

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

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/macayeal/diagnostic.m

    r1759 r1958  
    77%   Usage:
    88%      md=diagnostic(md)
     9
     10%control method?
     11if md.control_analysis==1,
     12        md=control(md);
     13        return;
     14end
    915
    1016%First check we do have the correct argument number
  • issm/trunk/src/m/utils/Nightly/testsgetfields.m

    r1914 r1958  
    1 function fields=testsgetfields(mdtype,string),
    2 %TESTSGETfields - build the fields to be checked from a string
     1function fields=testsgetfields(mdtype,analysis),
     2%TESTSGETFIELDS - build the fields to be checked from a analysis
    33%
    44%   This routine is used by nightly runs (runme.m and updatearchive.m).
    5 %   for an input string 'prognostic', it will output 'cielo'
     5%   for an input analysis 'prognostic', it will output 'cielo'
    66%
    77%   Usage:
    8 %      fields=testsgetfields(mdtype,string)
     8%      fields=testsgetfields(mdtype,analysis)
    99%
    1010%   Example:
     
    1313%   See also: TESTSGETANALYSIS, TESTGETPACKAGE
    1414
    15 if strcmpi(string,'diagnostic'),
     15if strcmpi(analysis,'diagnostic'),
    1616        if strcmpi(mdtype,'3d')
    1717                fields={'diagnostic.vy','diagnostic.vz'};
     
    2020        end
    2121
    22 elseif strcmpi(string,'thermal_steady'),
     22elseif strcmpi(analysis,'thermal_steady'),
    2323        fields={'thermal.temperature','thermal.melting'};
    2424
    25 elseif strcmpi(string,'thermal_transient'),
     25elseif strcmpi(analysis,'thermal_transient'),
    2626        fields={'thermal(end).temperature','thermal(end).melting'};
    2727
    28 elseif strcmpi(string,'prognostic'),
     28elseif strcmpi(analysis,'prognostic'),
    2929        fields={'prognostic.thickness'};
    3030
    31 elseif strcmpi(string,'transient'),
     31elseif strcmpi(analysis,'transient'),
    3232        if strcmpi(mdtype,'3d')
    3333                fields={'transient(end).vel','transient(end).pressure','transient(end).temperature','transient(end).melting','transient(end).thickness','transient(end).surface','transient(end).bed'};
     
    3636        end
    3737
    38 elseif strcmpi(string,'steadystate'),
     38elseif strcmpi(analysis,'steadystate'),
    3939        fields={'steadystate.vel','steadystate.pressure','steadystate.temperature'};
    4040
    41 elseif strcmpi(string,'control'),
    42         fields={'control.vel','control.J','control.parameter'};
     41elseif strncmpi(analysis,'diagnostic_',11),
     42        fields={'diagnostic.vel','diagnostic.J','diagnostic.parameter'};
     43
     44elseif strncmpi(analysis,'steadystate_',12),
     45        fields={'steadystate.vel','steadystate.J','steadystate.parameter'};
    4346
    4447else
    45         error(['testsgetfields error message: solution '  string ' not supported yet']);
     48        error(['testsgetfields error message: solution '  analysis ' not supported yet']);
    4649end
Note: See TracChangeset for help on using the changeset viewer.