aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-07-05 16:53:10 +0200
committerThomas White <taw@physics.org>2023-07-28 13:22:05 +0200
commit34e019de8ce2bb939bb9ee6a95ae198f70aab808 (patch)
tree70231203a801417bd5efc896c1c91cfc748d9798 /tests
parent81e75a6820a01cd5b4d481e3e24c8a54b5bc77e5 (diff)
Implement panel x gradients
Diffstat (limited to 'tests')
-rw-r--r--tests/gradient_panel_x.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/gradient_panel_x.c b/tests/gradient_panel_x.c
index ecadabdb..0e3e1a3d 100644
--- a/tests/gradient_panel_x.c
+++ b/tests/gradient_panel_x.c
@@ -85,8 +85,9 @@ int main(int argc, char *argv[])
if ( fabs(calc[0]) > 1e-12 ) n_wrong_r++;
/* Panel gradients should be within tolerance */
- if ( fabs(obs[1] - calc[1]) > 1e-6 ) n_wrong_fs++;
- if ( fabs(obs[2] - calc[2]) > 1e-6 ) n_wrong_ss++;
+ if ( fabs(obs[1] - calc[1]) > 1e-3 ) n_wrong_fs++;
+ if ( fabs(obs[2] - calc[2]) > 1e-3 ) n_wrong_ss++;
+
}
if ( n_wrong_r > 0 ) {