mirror of
https://github.com/cosmo-sims/monofonIC.git
synced 2024-09-19 17:03:45 +02:00
fixed compilation of PANPHASIA_HO for single precision
This commit is contained in:
parent
57e6c6300d
commit
c3e647ef59
2 changed files with 8 additions and 1 deletions
6
external/panphasia_ho/PAN_FFTW3.h
vendored
6
external/panphasia_ho/PAN_FFTW3.h
vendored
|
@ -1,10 +1,14 @@
|
|||
// Define macros for FFTW3 to allow swapping
|
||||
// between single/double precision FTs
|
||||
|
||||
#ifndef USE_PRECISION_FLOAT
|
||||
// include CMake controlled configuration settings
|
||||
|
||||
#if defined(USE_PRECISION_DOUBLE)
|
||||
#define FOURIER_DOUBLE
|
||||
#endif
|
||||
|
||||
#if defined(USE_PRECISION_LONGDOUBLE)
|
||||
#error "PANPHASIA-high-order does not currently support long double precision"
|
||||
#endif
|
||||
|
||||
|
||||
|
|
3
external/panphasia_ho/main.c
vendored
3
external/panphasia_ho/main.c
vendored
|
@ -17,6 +17,8 @@ int threads_ok;
|
|||
int number_omp_threads = 1;
|
||||
#endif
|
||||
|
||||
|
||||
#if 0 // this is now unused since all this has been migrated to plugin!
|
||||
// does the same as the main below, but does not initialise MPI or FFTW (this should be done in MONOFONIC)
|
||||
int PANPHASIA_HO_main(const char *descriptor, size_t *ngrid_load)
|
||||
{
|
||||
|
@ -66,6 +68,7 @@ int PANPHASIA_HO_main(const char *descriptor, size_t *ngrid_load)
|
|||
|
||||
return(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef STANDALONE_PANPHASIA_HO
|
||||
int main(int argc, char **argv)
|
||||
|
|
Loading…
Reference in a new issue