Changed SP and DP to WM_SP and WM_DP.

This commit is contained in:
henry
2009-07-03 11:46:45 +01:00
parent 07793793ae
commit 218b2baec4
8 changed files with 12 additions and 29 deletions

View File

@ -68,7 +68,7 @@ void* Foam::sigFpe::my_malloc_hook(size_t size, const void *caller)
result = malloc (size);
// initialize to signalling nan
# ifdef SP
# ifdef WM_SP
const uint32_t sNAN = 0x7ff7fffflu;

View File

@ -27,7 +27,7 @@ Typedef
Description
Single floating point number identical to float or double depending on
whether SP or DP is defined.
whether WM_SP or WM_DP is defined.
SourceFiles
scalar.C
@ -42,7 +42,7 @@ SourceFiles
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#if defined(SP)
#if defined(WM_SP)
// Define scalar as a float
@ -60,7 +60,7 @@ namespace Foam
scalar readScalar(Istream& is);
}
#elif defined(DP)
#elif defined(WM_DP)
// Define scalar as a double

View File

@ -34,9 +34,9 @@ License
#include <cstdlib>
#include <csignal>
#if defined(SP)
#if defined(WM_SP)
# define MPI_SCALAR MPI_FLOAT
#elif defined(DP)
#elif defined(WM_DP)
# define MPI_SCALAR MPI_DOUBLE
#endif

View File

@ -1,7 +1,7 @@
ParMGridGen = $(WM_THIRD_PARTY_DIR)/ParMGridGen-1.0
TYPE_REAL=
#if defined(SP)
#if defined(WM_SP)
TYPE_REAL=-DTYPE_REAL
#endif