From 0508fc381cda5a3ead7069624ae5036183eee840 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 21 Jul 2014 14:27:58 +0200 Subject: Prevent gradient test from failing --- tests/pr_l_gradient_check.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tests/pr_l_gradient_check.c') diff --git a/tests/pr_l_gradient_check.c b/tests/pr_l_gradient_check.c index 7342d5f8..3b914219 100644 --- a/tests/pr_l_gradient_check.c +++ b/tests/pr_l_gradient_check.c @@ -337,7 +337,7 @@ int main(int argc, char *argv[]) rng = gsl_rng_alloc(gsl_rng_mt19937); - for ( i=0; i<2; i++ ) { + for ( i=0; i<3; i++ ) { UnitCell *rot; double val; @@ -346,11 +346,17 @@ int main(int argc, char *argv[]) if ( i == 0 ) { pmodel = PMODEL_SPHERE; STATUS("Testing flat sphere model:\n"); - } else { + } else if ( i == 1 ) { pmodel = PMODEL_GAUSSIAN; STATUS("Testing Gaussian model:\n"); + } else if ( i == 2 ) { + pmodel = PMODEL_THIN; + STATUS("No need to test thin Ewald sphere model.\n"); + continue; + } else { + ERROR("WTF?\n"); + return 1; } - /* No point testing TES model, because it has no Lorentz factor */ orientation = random_quaternion(rng); rot = cell_rotate(cell, orientation); -- cgit v1.2.3