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:
parent
69f9772cc5
commit
974900dc81
2 changed files with 11 additions and 1 deletions
8
external/panphasia_ho/PAN_FFTW3.h
vendored
8
external/panphasia_ho/PAN_FFTW3.h
vendored
|
@ -1,6 +1,14 @@
|
|||
// Define macros for FFTW3 to allow swapping
|
||||
// between single/double precision FTs
|
||||
|
||||
#ifndef USE_PRECISION_FLOAT
|
||||
|
||||
#define FOURIER_DOUBLE
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#define FOURIER_DOUBLE
|
||||
|
||||
#ifdef FOURIER_DOUBLE
|
||||
|
|
4
external/panphasia_ho/panphasia_functions.h
vendored
4
external/panphasia_ho/panphasia_functions.h
vendored
|
@ -3,8 +3,10 @@
|
|||
// By default Panphasia is computed at single
|
||||
// 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue