aboutsummaryrefslogtreecommitdiff
path: root/tests/prediction_gradient_check.c
AgeCommit message (Collapse)Author
2015-04-20Avoid testing gradients which don't make senseThomas White
2015-04-20Factorise dr/da part of gradient calculation for PR and predictionThomas White
2015-04-20Remove debugThomas White
2015-04-20Split x and y terms in residualThomas White
2015-04-20Make panel assignments invariant during prediction- and post-refinementThomas White
Reflections appearing and disappearing are problematic when trying to do a least-squares refinement. Therefore, assume that reflections stay on panel and keep them under consideration even if their partialities go to zero (i.e. they drift off Bragg). This should stabilise both refinements, and simplifies quite a lot of code. Collateral "damage": the old "select_intersection()" is now gone.
2015-04-20Add gradient test program and fix gradientsThomas White