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/1d.coeffs/1d.cube.order6.smooth0/coeffs-dxx.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/1d.coeffs/1d.cube.order6.smooth0/coeffs-dxx.compute.c')
-rw-r--r-- | src/GeneralizedPolynomial-Uniform/Lagrange/1d.coeffs/1d.cube.order6.smooth0/coeffs-dxx.compute.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/GeneralizedPolynomial-Uniform/Lagrange/1d.coeffs/1d.cube.order6.smooth0/coeffs-dxx.compute.c b/src/GeneralizedPolynomial-Uniform/Lagrange/1d.coeffs/1d.cube.order6.smooth0/coeffs-dxx.compute.c new file mode 100644 index 0000000..02aa677 --- /dev/null +++ b/src/GeneralizedPolynomial-Uniform/Lagrange/1d.coeffs/1d.cube.order6.smooth0/coeffs-dxx.compute.c @@ -0,0 +1,24 @@ +fp t144; +fp t145; +fp t150; +fp t149; +fp t141; +fp t148; +fp t143; + t144 = x*x; + t145 = t144*t144; + t150 = RATIONAL(-13.0,4.0)*t144+RATIONAL(3.0,2.0)+RATIONAL(5.0,8.0)*t145; + t149 = t144+RATIONAL(-3.0,20.0)+RATIONAL(-1.0,4.0)*t145; + t141 = RATIONAL(-1.0,12.0); + t148 = RATIONAL(1.0,90.0)+RATIONAL(1.0,24.0)*t145+t141*t144; + t143 = x*t144; + coeffs_dxx->coeff_m3 = RATIONAL(1.0,8.0)*x+t141*t143+t148; + coeffs_dxx->coeff_m2 = -x+RATIONAL(1.0,3.0)*t143+t149; + coeffs_dxx->coeff_m1 = RATIONAL(-5.0,12.0)*t143+RATIONAL(13.0,8.0)*x+t150 +; + coeffs_dxx->coeff_0 = RATIONAL(14.0,3.0)*t144+RATIONAL(-5.0,6.0)*t145+ +RATIONAL(-49.0,18.0); + coeffs_dxx->coeff_p1 = RATIONAL(5.0,12.0)*t143+RATIONAL(-13.0,8.0)*x+t150 +; + coeffs_dxx->coeff_p2 = x+RATIONAL(-1.0,3.0)*t143+t149; + coeffs_dxx->coeff_p3 = RATIONAL(-1.0,8.0)*x+RATIONAL(1.0,12.0)*t143+t148; |