aboutsummaryrefslogtreecommitdiff
path: root/src/Lagrange-tensor-product/2d.coeffs/2d.cube.order2.smooth0/coeffs-dxx.compute.c
diff options
context:
space:
mode:
authorjthorn <jthorn@0f49ee68-0e4f-0410-9b9c-b2c123ded7ef>2004-05-15 14:11:49 +0000
committerjthorn <jthorn@0f49ee68-0e4f-0410-9b9c-b2c123ded7ef>2004-05-15 14:11:49 +0000
commit527f138c08f3ca615b124860aab14e30353212f9 (patch)
tree39089cfcd43afecacbe8334c3df6a4c115359f0c /src/Lagrange-tensor-product/2d.coeffs/2d.cube.order2.smooth0/coeffs-dxx.compute.c
parent214f8eae27c0c862f2b2ca17b683540a0c3d3662 (diff)
fix a nasty bug which caused the 2D order=3 Lagrange interpolators
to be only first accurate :( :( (it was a typo in the maple script generating the coefficients) (I'm still investigating why my interpolator tests didn't spot this before) git-svn-id: http://svn.aei.mpg.de/numrel/AEIThorns/AEILocalInterp/trunk@18 0f49ee68-0e4f-0410-9b9c-b2c123ded7ef
Diffstat (limited to 'src/Lagrange-tensor-product/2d.coeffs/2d.cube.order2.smooth0/coeffs-dxx.compute.c')
-rw-r--r--src/Lagrange-tensor-product/2d.coeffs/2d.cube.order2.smooth0/coeffs-dxx.compute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Lagrange-tensor-product/2d.coeffs/2d.cube.order2.smooth0/coeffs-dxx.compute.c b/src/Lagrange-tensor-product/2d.coeffs/2d.cube.order2.smooth0/coeffs-dxx.compute.c
index d67f268..0599d25 100644
--- a/src/Lagrange-tensor-product/2d.coeffs/2d.cube.order2.smooth0/coeffs-dxx.compute.c
+++ b/src/Lagrange-tensor-product/2d.coeffs/2d.cube.order2.smooth0/coeffs-dxx.compute.c
@@ -7,14 +7,14 @@ fp t57;
t62 = y*y;
t61 = RATIONAL(1.0,2.0);
t60 = t61*t62;
- t59 = -t62+RATIONAL(1.0,1.0);
+ t59 = RATIONAL(1.0,1.0)-t62;
t58 = RATIONAL(-1.0,2.0)*y+t60;
- t57 = t60+t61*y;
+ t57 = t61*y+t60;
coeffs_dxx->coeff_m1_m1 = t58;
coeffs_dxx->coeff_0_m1 = y-t62;
coeffs_dxx->coeff_p1_m1 = t58;
coeffs_dxx->coeff_m1_0 = t59;
- coeffs_dxx->coeff_0_0 = RATIONAL(2.0,1.0)*t62+RATIONAL(-2.0,1.0);
+ coeffs_dxx->coeff_0_0 = RATIONAL(-2.0,1.0)+RATIONAL(2.0,1.0)*t62;
coeffs_dxx->coeff_p1_0 = t59;
coeffs_dxx->coeff_m1_p1 = t57;
coeffs_dxx->coeff_0_p1 = -t62-y;