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

@ -23,7 +23,7 @@ INCLUDE_DIRECTORIES(
)
ADD_DEFINITIONS(
-D$ENV{WM_PRECISION_OPTION}
-DWM_$ENV{WM_PRECISION_OPTION}
)
# Set output library destination to plugin folder

View File

@ -22,7 +22,7 @@ INCLUDE_DIRECTORIES(
$ENV{ParaView_INST_DIR}/include
../vtkFoam/lnInclude
)
ADD_DEFINITIONS(-D$ENV{WM_PRECISION_OPTION})
ADD_DEFINITIONS(-DWM_$ENV{WM_PRECISION_OPTION})
#-----------------------------------------------------------------------------
# Most users should not need to change anything below this line.

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

View File

@ -1,17 +0,0 @@
#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name from directory
application="XiFoam"
cases=" \
pitzDaily \
pitzDaily3D
"
for i in $cases; do
blockMesh -case $i
$application -case $i
done

View File

@ -3,7 +3,7 @@ ARFLAGS = cr
RANLIB = ranlib
LD = ld
GFLAGS = -D$(WM_ARCH) -D$(WM_PRECISION_OPTION)
GFLAGS = -D$(WM_ARCH) -DWM_$(WM_PRECISION_OPTION)
GINC =
GLIBS = -lm
GLIB_LIBS =