diff options
author | jthorn <jthorn@df1f8a13-aa1d-4dd4-9681-27ded5b42416> | 2002-09-02 10:36:32 +0000 |
---|---|---|
committer | jthorn <jthorn@df1f8a13-aa1d-4dd4-9681-27ded5b42416> | 2002-09-02 10:36:32 +0000 |
commit | 80df27de110b6e739fda09ba4d9eae9fdbefc342 (patch) | |
tree | 3c17be6653cf3bd67a40fdf79f0821ff1afdd333 /src/GeneralizedPolynomial-Uniform/Lagrange/2d.coeffs/2d.cube.order1.smooth0/coeffs-I.compute.c | |
parent | 2248cabada859337c9945616de9a3d612d8f2199 (diff) |
This is a major reworking of this interpolator.
The interpolation code in template.c is now split up into subfunctions
(in common/, Lagrange/, and Hermite/), so it should now compile in
finite cpu/memory even with optimization.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@115 df1f8a13-aa1d-4dd4-9681-27ded5b42416
Diffstat (limited to 'src/GeneralizedPolynomial-Uniform/Lagrange/2d.coeffs/2d.cube.order1.smooth0/coeffs-I.compute.c')
-rw-r--r-- | src/GeneralizedPolynomial-Uniform/Lagrange/2d.coeffs/2d.cube.order1.smooth0/coeffs-I.compute.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/GeneralizedPolynomial-Uniform/Lagrange/2d.coeffs/2d.cube.order1.smooth0/coeffs-I.compute.c b/src/GeneralizedPolynomial-Uniform/Lagrange/2d.coeffs/2d.cube.order1.smooth0/coeffs-I.compute.c new file mode 100644 index 0000000..cda1593 --- /dev/null +++ b/src/GeneralizedPolynomial-Uniform/Lagrange/2d.coeffs/2d.cube.order1.smooth0/coeffs-I.compute.c @@ -0,0 +1,18 @@ +fp t7; +fp t6; +fp t5; +fp t4; +fp t3; +fp t2; +fp t1; + t7 = RATIONAL(-1.0,2.0); + t6 = RATIONAL(1.0,4.0); + t5 = RATIONAL(1.0,2.0); + t4 = t7*y; + t3 = t7*x; + t2 = t5*x; + t1 = t5*y; + coeffs_I->coeff_0_0 = RATIONAL(3.0,4.0)+t4+t3; + coeffs_I->coeff_p1_0 = t6+t4+t2; + coeffs_I->coeff_0_p1 = t3+t6+t1; + coeffs_I->coeff_p1_p1 = t1+RATIONAL(-1.0,4.0)+t2; |