Changeset 9221
- Timestamp:
- 08/09/11 13:42:40 (14 years ago)
- Location:
- issm/trunk/src/m/model
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/ismodelselfconsistent.m
r9218 r9221 371 371 end 372 372 373 %DIRICHLET IF THICKNESS <= 0374 %Check the size of spcthickness375 fields={'spcthickness'};376 checksize(md,fields,[md.numberofnodes 1]);377 if any(md.thickness<=0),378 pos=find(md.thickness<=0);379 if any(isnan(md.spcthickness(pos))),380 message(['model not consistent: model ' md.name ' has some nodes with 0 thickness']);381 end382 end383 384 373 %ROTATED SPC 385 374 %CHECK THAT EACH LINES CONTAINS ONLY NAN VALUES OR NO NAN VALUES … … 470 459 fields={'surface_mass_balance'}; 471 460 checkforcing(md,fields); 461 462 %DIRICHLET 463 fields={'spcthickness'}; 464 checkforcing(md,fields); 465 466 %DIRICHLET IF THICKNESS <= 0 467 %Check the size of spcthickness 468 if any(md.thickness<=0), 469 pos=find(md.thickness<=0); 470 if any(isnan(md.spcthickness(pos))), 471 message(['model not consistent: model ' md.name ' has some nodes with 0 thickness']); 472 end 473 end 474 472 475 %}}} 473 476 case HydrologyAnalysisEnum, -
issm/trunk/src/m/model/loadresultsfromdisk.m
r7935 r9221 25 25 md.solution_type=structure(1).SolutionType; 26 26 27 %Check result is consistent, only if it exists28 %disp(sprintf('%s\n','checking result consistency'));29 %if ~isresultconsistent(md,structure(1).SolutionType), After many uses, found out its useless.30 % %it would be very cruel to use an error, it would kill the computed results (although they are not consistent...)31 % disp('!! results not consistent correct the model !!')32 %end33 34 27 %post processes qmu results if necessary 35 28 else -
issm/trunk/src/m/model/parseresultsfromdisk.m
r6749 r9221 4 4 % Usage: 5 5 % results=parseresultsfromdisk(filename,iosplit) 6 7 8 6 9 7 if iosplit,
Note:
See TracChangeset
for help on using the changeset viewer.