We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90e38a6 commit 08bcb7dCopy full SHA for 08bcb7d
Tests/TestInterp.m
@@ -55,13 +55,17 @@
55
end
56
57
% Check the different mesh volumes
58
-disp('Mesh Volumes:')
+disp('Mesh volumes:')
59
disp(volumes)
60
61
-if max(volumes)-min(volumes)/mean(volumes) > 0.01
+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
66
error('Mesh volumes are too disparate with different dems')
67
+ disp('Not Passed: Interp');
68
else
- disp('Mesh volumes are within 1% of each other')
69
+ disp('Mesh volumes are within 0.1% of each other')
70
+ disp('Passed: Interp');
71
-
-disp('Passed: Interp');
0 commit comments