mirror of
https://github.com/cosmo-sims/monofonIC.git
synced 2024-09-19 17:03:45 +02:00
more fixes to expose precision selection also to C code. should work now for PANPHASIA_HO
This commit is contained in:
parent
c3e647ef59
commit
f3d9c25e1e
2 changed files with 8 additions and 2 deletions
2
external/panphasia_ho/PAN_FFTW3.h
vendored
2
external/panphasia_ho/PAN_FFTW3.h
vendored
|
@ -2,6 +2,8 @@
|
|||
// between single/double precision FTs
|
||||
|
||||
// include CMake controlled configuration settings
|
||||
#pragma once
|
||||
#include "cmake_config.hh"
|
||||
|
||||
#if defined(USE_PRECISION_DOUBLE)
|
||||
#define FOURIER_DOUBLE
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
#pragma once
|
||||
|
||||
constexpr char CMAKE_BUILDTYPE_STR[] = "${CMAKE_BUILD_TYPE}";
|
||||
|
||||
#define USE_PRECISION_${CODE_PRECISION}
|
||||
|
||||
#ifdef __cplusplus
|
||||
constexpr char CMAKE_BUILDTYPE_STR[] = "${CMAKE_BUILD_TYPE}";
|
||||
#if defined(USE_PRECISION_FLOAT)
|
||||
constexpr char CMAKE_PRECISION_STR[] = "single";
|
||||
#elif defined(USE_PRECISION_DOUBLE)
|
||||
|
@ -31,4 +33,6 @@ extern "C"
|
|||
extern const char *GIT_TAG;
|
||||
extern const char *GIT_REV;
|
||||
extern const char *GIT_BRANCH;
|
||||
|
||||
}
|
||||
#endif // __cplusplus
|
Loading…
Reference in a new issue