Ignore:
Timestamp:
04/11/11 08:01:43 (14 years ago)
Author:
seroussi
Message:

minor ismodelselfconsistent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/ismodelselfconsistent.m

    r7691 r7801  
    377377
    378378                        %INITIAL VELOCITY
    379                         if ~isempty(md.vx) & ~isempty(md.vy),
     379                        if ~isnan(md.vx) & ~isnan(md.vy),
    380380                                fields={'vx','vy'};
    381381                                checknan(md,fields);
     
    413413                        %CHECK THAT WE ARE NOT FULLY CONSTRAINED
    414414                        if (md.dim==2),
    415                                 if isempty(find(~md.spcthickness(:,1))),
     415                                if isnan(find(~md.spcthickness(:,1))),
    416416                                        error(['model not consistent: model ' md.name ' is totally constrained for prognostic, no need to solve!']);
    417417                                end
     
    426426
    427427                        %CHECK THAT WE ARE NOT FULLY CONSTRAINED
    428                         if isempty(find(~md.spctemperature(:,1))),
     428                        if isnan(find(~md.spctemperature(:,1))),
    429429                                error(['model not consistent: model ' md.name ' is totally constrained for temperature, no need to solve!']);
    430430                        end
Note: See TracChangeset for help on using the changeset viewer.