Skip to content

Commit 08bcb7d

Browse files
committed
reducing the tolerance for relative volume difference in the test
1 parent 90e38a6 commit 08bcb7d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Tests/TestInterp.m

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,17 @@
5555
end
5656

5757
% Check the different mesh volumes
58-
disp('Mesh Volumes:')
58+
disp('Mesh volumes:')
5959
disp(volumes)
6060

61-
if max(volumes)-min(volumes)/mean(volumes) > 0.01
61+
volume_diff = (max(volumes)-min(volumes))/mean(volumes);
62+
disp('Maximum relative volume difference:')
63+
disp(volume_diff)
64+
65+
if volume_diff > 0.001
6266
error('Mesh volumes are too disparate with different dems')
67+
disp('Not Passed: Interp');
6368
else
64-
disp('Mesh volumes are within 1% of each other')
69+
disp('Mesh volumes are within 0.1% of each other')
70+
disp('Passed: Interp');
6571
end
66-
67-
disp('Passed: Interp');

0 commit comments

Comments
 (0)