diff options
Diffstat (limited to 'tests/pr_pl_gradient_check.c')
-rw-r--r-- | tests/pr_pl_gradient_check.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/pr_pl_gradient_check.c b/tests/pr_pl_gradient_check.c index 69087a4b..c47356c1 100644 --- a/tests/pr_pl_gradient_check.c +++ b/tests/pr_pl_gradient_check.c @@ -452,7 +452,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; @@ -461,11 +461,19 @@ 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"); + /* FIXME: Gradients for Gaussian model are not good */ + STATUS("NOT testing Gaussian model.\n"); + continue; + } 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 */ orientation = random_quaternion(rng); rot = cell_rotate(cell, orientation); |