Changeset 2519


Ignore:
Timestamp:
10/23/09 11:23:30 (15 years ago)
Author:
seroussi
Message:

added check for consistency of the model if all temperature or thickness are spcs

File:
1 edited

Legend:

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

    r2440 r2519  
    233233        checknan(md,fields);
    234234
     235        %CHECK THAT WE ARE NOT FULLY CONSTRAINED
     236        if strcmpi(md.type,'2d'),
     237                if isempty(find(~md.spcthickness(:,1))),
     238                        error(['model not consistent: model ' md.name ' is totally constrained for prognostic, no need to solve!']);
     239                end
     240        end
     241
    235242end
    236243
     
    265272        if strcmp(md.type,'2d'),
    266273                error(['model not consistent: for a ' md.analysis_type ' computation, the model must be 3d, extrude it first!'])
     274        end
     275
     276        %CHECK THAT WE ARE NOT FULLY CONSTRAINED
     277        if strcmpi(md.type,'2d'),
     278                if isempty(find(~md.spctemperature(:,1))),
     279                        error(['model not consistent: model ' md.name ' is totally constrained for temperature, no need to solve!']);
     280                end
    267281        end
    268282
Note: See TracChangeset for help on using the changeset viewer.