diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-06-13 02:45:16 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-06-13 02:45:16 +0000 |
commit | c0c7359304c7bb54d794c74b260d9b0bd18f02ae (patch) | |
tree | c16ff1091eb663e4483e6fffe8f2db1abc152d28 /externals/grill/vasp/source/mixfft.cpp | |
parent | d1f912c93aef58acb6b69b16576792bbcd608399 (diff) |
""
svn path=/trunk/; revision=701
Diffstat (limited to 'externals/grill/vasp/source/mixfft.cpp')
-rw-r--r-- | externals/grill/vasp/source/mixfft.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/externals/grill/vasp/source/mixfft.cpp b/externals/grill/vasp/source/mixfft.cpp index 975e8cb1..73d1fca7 100644 --- a/externals/grill/vasp/source/mixfft.cpp +++ b/externals/grill/vasp/source/mixfft.cpp @@ -177,7 +177,7 @@ static void factorize(int n, int *nFact, int fact[]) } if (n>1) { - for (k=2; k<sqrt(n)+1; k++) + for (k=2; k<sqrt((double)n)+1; k++) while ((n % k) == 0) { n=n / k; @@ -575,7 +575,7 @@ bool mixfft(int n, REAL *xRe, REAL *xIm,REAL *yRe, REAL *yIm) int nFactor; int count; - pi = 4*atan(1); + pi = 4*atan(1.); if(!transTableSetup(sofarRadix, actualRadix, remainRadix, &nFactor, &n)) return false; permute(n, nFactor, actualRadix, remainRadix, xRe, xIm, yRe, yIm); |