1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00

Added define statements for USE_PRECISION_FLOAT to make both the FFTW

and Panphasia routines either both single precision or both double
precision.

:wq
This commit is contained in:
Adrian Jenkins 2021-05-11 12:26:18 +01:00
parent 69f9772cc5
commit 974900dc81
2 changed files with 11 additions and 1 deletions

View file

@ -1,6 +1,14 @@
// Define macros for FFTW3 to allow swapping // Define macros for FFTW3 to allow swapping
// between single/double precision FTs // between single/double precision FTs
#ifndef USE_PRECISION_FLOAT
#define FOURIER_DOUBLE
#endif
#define FOURIER_DOUBLE #define FOURIER_DOUBLE
#ifdef FOURIER_DOUBLE #ifdef FOURIER_DOUBLE

View file

@ -3,8 +3,10 @@
// By default Panphasia is computed at single // By default Panphasia is computed at single
// precision. To override this define PAN_DOUBLE // precision. To override this define PAN_DOUBLE
//#define PAN_DOUBLE_PRECISION 8
#ifndef USE_PRECISION_FLOAT
#define PAN_DOUBLE_PRECISION 8
#endif
#ifndef PAN_DOUBLE_PRECISION #ifndef PAN_DOUBLE_PRECISION