Changeset 1781


Ignore:
Timestamp:
08/19/09 12:24:46 (16 years ago)
Author:
seroussi
Message:

analysis_type are Enums now

File:
1 edited

Legend:

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

    r1757 r1781  
    186186
    187187%DIAGNOSTIC
    188 if strcmpi(md.analysis_type,'diagnostic')
     188if md.analysis_type==DiagnosticAnalysisEnum,
    189189
    190190        %HUTTER ON ICESHELF WARNING
     
    210210
    211211%PROGNOSTIC
    212 if strcmp(md.analysis_type,'prognostic'),
     212if md.analysis_type==PrognosticAnalysisEnum,
    213213
    214214        %VELOCITIES
     
    220220
    221221%THERMAL STEADY AND THERMAL TRANSIENT
    222 if strcmpi(md.analysis_type,'thermal'),
     222if md.analysis_type==ThermalAnalysisEnum,
    223223
    224224        %EXTRUSION
     
    240240
    241241%THERMAL TRANSIENT
    242 if strcmpi(md.analysis_type,'thermal') & strcmp(md.sub_analysis_type,'transient'),
     242if md.analysis_type==ThermalAnalysisEnum & md.sub_analysis_type==TransientAnalysisEnum,
    243243
    244244        %DT and NDT
     
    263263
    264264%PARAMETERS
    265 if strcmp(md.analysis_type,'parameters')
     265if md.analysis_type==ParametersAnalysisEnum,
    266266
    267267        %PACKAGE
     
    297297
    298298%CONTROL
    299 if strcmpi(md.analysis_type,'control'),
     299if md.analysis_type==ControlAnalysisEnum,
    300300
    301301        %CONTROL TYPE
     
    352352end
    353353
    354 %MESH
    355 if strcmpi(md.analysis_type,'mesh'),
    356         %this solution is a little special. It should come right after the md=model;  operation. So a lot less checks!
    357 
    358         bool=1;
    359         return;
    360 end
    361 
    362354%MESH2GRID
    363 if strcmpi(md.analysis_type,'mesh2grid'),
     355if md.analysis_type==Mesh2gridAnalysisEnum,
    364356        if ~strcmpi(md.cluster,'none'),
    365357                disp(['model is not correctly configured: mesh2grid not supported in parallel yet!']);
Note: See TracChangeset for help on using the changeset viewer.