Changeset 7801 for issm/trunk/src/m/model/ismodelselfconsistent.m
- Timestamp:
- 04/11/11 08:01:43 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/ismodelselfconsistent.m
r7691 r7801 377 377 378 378 %INITIAL VELOCITY 379 if ~is empty(md.vx) & ~isempty(md.vy),379 if ~isnan(md.vx) & ~isnan(md.vy), 380 380 fields={'vx','vy'}; 381 381 checknan(md,fields); … … 413 413 %CHECK THAT WE ARE NOT FULLY CONSTRAINED 414 414 if (md.dim==2), 415 if is empty(find(~md.spcthickness(:,1))),415 if isnan(find(~md.spcthickness(:,1))), 416 416 error(['model not consistent: model ' md.name ' is totally constrained for prognostic, no need to solve!']); 417 417 end … … 426 426 427 427 %CHECK THAT WE ARE NOT FULLY CONSTRAINED 428 if is empty(find(~md.spctemperature(:,1))),428 if isnan(find(~md.spctemperature(:,1))), 429 429 error(['model not consistent: model ' md.name ' is totally constrained for temperature, no need to solve!']); 430 430 end
Note:
See TracChangeset
for help on using the changeset viewer.