Ignore:
Timestamp:
06/03/09 13:36:15 (15 years ago)
Author:
Mathieu Morlighem
Message:

avoid NaN values in tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/test/Verification/IceSheetIceFrontP3d_10/runme.m

    r734 r745  
    6565                        %compare to archive
    6666                        eval(['Archive=Archive' package solution '_field' num2str(k) ';']);
    67                         eval(['error_diff=full(max(abs(Archive-md.results.' field '))/max(abs(Archive)));']);
     67                        eval(['error_diff=full(max(abs(Archive-md.results.' field '))/(max(abs(Archive))+eps));']);
    6868
    6969                        %disp test result
Note: See TracChangeset for help on using the changeset viewer.