Changeset 9075 for issm/trunk/src/m/model/ismodelselfconsistent.m
- Timestamp:
- 07/19/11 16:28:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/ismodelselfconsistent.m
r9049 r9075 224 224 if any(md.thickness<=0), 225 225 pos=find(md.thickness<=0); 226 if any( find(md.spcthickness(pos,1)==0)),226 if any(isnan(md.spcthickness(pos))), 227 227 message(['model not consistent: model ' md.name ' has some nodes with 0 thickness']); 228 228 end … … 369 369 if any(md.thickness<=0), 370 370 pos=find(md.thickness<=0); 371 if any( find(md.spcthickness(pos,1)==0)),371 if any(isnan(md.spcthickness(pos))), 372 372 message(['model not consistent: model ' md.name ' has some nodes with 0 thickness']); 373 373 end … … 458 458 checksize(md,fields,[md.numberofnodes 1]); 459 459 checknan(md,fields); 460 461 %CHECK THAT WE ARE NOT FULLY CONSTRAINED462 if (md.dim==2),463 if isnan(find(~md.spcthickness(:,1))),464 message(['model not consistent: model ' md.name ' is totally constrained for prognostic, no need to solve!']);465 end466 end467 460 %}}} 468 461 case HydrologyAnalysisEnum, … … 560 553 checksize(md,fields,[md.numberofnodes 1]); 561 554 checknan(md,fields); 562 563 %SPC564 % if ~md.prognostic_DG,565 % if any(md.spcthickness(find(md.nodeonboundary))~=1),566 % message(['model not consistent: model ' md.name ' should have all the nodes on boundary constrained in field spcthickness']);567 % end568 % end569 555 570 556 %Triangle with zero velocity
Note:
See TracChangeset
for help on using the changeset viewer.