diff options
author | knarf <knarf@b2a53a04-0f4f-0410-87ed-f9f25ced00cf> | 2005-02-23 10:24:29 +0000 |
---|---|---|
committer | knarf <knarf@b2a53a04-0f4f-0410-87ed-f9f25ced00cf> | 2005-02-23 10:24:29 +0000 |
commit | d6ca6e8c97ee146583c4fa5590fe4ec32ce39ed4 (patch) | |
tree | a10b665efb1d7b7e2969b0a2d142d2794e86ffda /src | |
parent | a63053ffba22e074eda6264762bb8aeaaa378dfe (diff) |
insert a commented out (#if 0) section to cut very small spectral coefficients
to 0. Does nothing if not enabled
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/TwoPunctures/trunk@38 b2a53a04-0f4f-0410-87ed-f9f25ced00cf
Diffstat (limited to 'src')
-rw-r--r-- | src/TP_utilities.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/TP_utilities.c b/src/TP_utilities.c index 64edbfd..5c4b5da 100644 --- a/src/TP_utilities.c +++ b/src/TP_utilities.c @@ -555,7 +555,12 @@ chebft_Zeros (double u[], int n, int inv) } } for (j = 0; j < n; j++) - u[j] = c[j]; +#if 0 + if (fabs(c[j]) < 5.e-16) + u[j] = 0.0; + else +#endif + u[j] = c[j]; free_dvector (c, 0, n); } |