Commit b24546ec authored by Andreas Marek's avatar Andreas Marek
Browse files

Update precision_macros

parent a9b3af21
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
#undef MPI_REAL_PRECISION #undef MPI_REAL_PRECISION
#undef MPI_MATH_DATATYPE_PRECISION #undef MPI_MATH_DATATYPE_PRECISION
#undef C_DATATYPE_KIND #undef C_DATATYPE_KIND
#undef THRESHOLD
/* General definitions needed in single and double case */ /* General definitions needed in single and double case */
#define MATH_DATATYPE real #define MATH_DATATYPE real
...@@ -94,6 +96,7 @@ ...@@ -94,6 +96,7 @@
#define MPI_MATH_DATATYPE_PRECISION MPI_REAL8 #define MPI_MATH_DATATYPE_PRECISION MPI_REAL8
#define C_DATATYPE_KIND c_double #define C_DATATYPE_KIND c_double
#define THRESHOLD 1e-11_rk8
#endif /* DOUBLE_PRECISION */ #endif /* DOUBLE_PRECISION */
#ifdef SINGLE_PRECISION #ifdef SINGLE_PRECISION
...@@ -142,6 +145,7 @@ ...@@ -142,6 +145,7 @@
#define MPI_MATH_DATATYPE_PRECISION MPI_REAL4 #define MPI_MATH_DATATYPE_PRECISION MPI_REAL4
#define C_DATATYPE_KIND c_float #define C_DATATYPE_KIND c_float
#define THRESHOLD 1e-4_rk4
#endif /* SINGLE_PRECISION */ #endif /* SINGLE_PRECISION */
#endif /* REALCASE */ #endif /* REALCASE */
...@@ -205,6 +209,8 @@ ...@@ -205,6 +209,8 @@
#undef CONST_COMPLEX_1_0 #undef CONST_COMPLEX_1_0
#undef C_DATATYPE_KIND #undef C_DATATYPE_KIND
#undef THRESHOLD
/* General definitions needed in single and double case */ /* General definitions needed in single and double case */
#define MATH_DATATYPE complex #define MATH_DATATYPE complex
#define BLAS_TRANS_OR_CONJ 'C' #define BLAS_TRANS_OR_CONJ 'C'
...@@ -264,6 +270,7 @@ ...@@ -264,6 +270,7 @@
#define CONST_COMPLEX_1_0 1.0_ck8 #define CONST_COMPLEX_1_0 1.0_ck8
#define C_DATATYPE_KIND c_double #define C_DATATYPE_KIND c_double
#define THRESHOLD 1e-11_rk8
#endif /* DOUBLE PRECISION */ #endif /* DOUBLE PRECISION */
#ifdef SINGLE_PRECISION #ifdef SINGLE_PRECISION
...@@ -320,6 +327,7 @@ ...@@ -320,6 +327,7 @@
#define CONST_COMPLEX_1_0 1.0_ck4 #define CONST_COMPLEX_1_0 1.0_ck4
#define C_DATATYPE_KIND c_float #define C_DATATYPE_KIND c_float
#define THRESHOLD 1e-4_rk4
#endif /* SINGLE PRECISION */ #endif /* SINGLE PRECISION */
#endif /* COMPLEXCASE */ #endif /* COMPLEXCASE */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment