mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Changed SP and DP to WM_SP and WM_DP.
This commit is contained in:
@ -23,7 +23,7 @@ INCLUDE_DIRECTORIES(
|
|||||||
)
|
)
|
||||||
|
|
||||||
ADD_DEFINITIONS(
|
ADD_DEFINITIONS(
|
||||||
-D$ENV{WM_PRECISION_OPTION}
|
-DWM_$ENV{WM_PRECISION_OPTION}
|
||||||
)
|
)
|
||||||
|
|
||||||
# Set output library destination to plugin folder
|
# Set output library destination to plugin folder
|
||||||
|
|||||||
@ -22,7 +22,7 @@ INCLUDE_DIRECTORIES(
|
|||||||
$ENV{ParaView_INST_DIR}/include
|
$ENV{ParaView_INST_DIR}/include
|
||||||
../vtkFoam/lnInclude
|
../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.
|
# Most users should not need to change anything below this line.
|
||||||
|
|||||||
@ -68,7 +68,7 @@ void* Foam::sigFpe::my_malloc_hook(size_t size, const void *caller)
|
|||||||
result = malloc (size);
|
result = malloc (size);
|
||||||
|
|
||||||
// initialize to signalling nan
|
// initialize to signalling nan
|
||||||
# ifdef SP
|
# ifdef WM_SP
|
||||||
|
|
||||||
const uint32_t sNAN = 0x7ff7fffflu;
|
const uint32_t sNAN = 0x7ff7fffflu;
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ Typedef
|
|||||||
|
|
||||||
Description
|
Description
|
||||||
Single floating point number identical to float or double depending on
|
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
|
SourceFiles
|
||||||
scalar.C
|
scalar.C
|
||||||
@ -42,7 +42,7 @@ SourceFiles
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
#if defined(SP)
|
#if defined(WM_SP)
|
||||||
|
|
||||||
// Define scalar as a float
|
// Define scalar as a float
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ namespace Foam
|
|||||||
scalar readScalar(Istream& is);
|
scalar readScalar(Istream& is);
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(DP)
|
#elif defined(WM_DP)
|
||||||
|
|
||||||
// Define scalar as a double
|
// Define scalar as a double
|
||||||
|
|
||||||
|
|||||||
@ -34,9 +34,9 @@ License
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <csignal>
|
#include <csignal>
|
||||||
|
|
||||||
#if defined(SP)
|
#if defined(WM_SP)
|
||||||
# define MPI_SCALAR MPI_FLOAT
|
# define MPI_SCALAR MPI_FLOAT
|
||||||
#elif defined(DP)
|
#elif defined(WM_DP)
|
||||||
# define MPI_SCALAR MPI_DOUBLE
|
# define MPI_SCALAR MPI_DOUBLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
ParMGridGen = $(WM_THIRD_PARTY_DIR)/ParMGridGen-1.0
|
ParMGridGen = $(WM_THIRD_PARTY_DIR)/ParMGridGen-1.0
|
||||||
|
|
||||||
TYPE_REAL=
|
TYPE_REAL=
|
||||||
#if defined(SP)
|
#if defined(WM_SP)
|
||||||
TYPE_REAL=-DTYPE_REAL
|
TYPE_REAL=-DTYPE_REAL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -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
|
|
||||||
|
|
||||||
@ -3,7 +3,7 @@ ARFLAGS = cr
|
|||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
LD = ld
|
LD = ld
|
||||||
|
|
||||||
GFLAGS = -D$(WM_ARCH) -D$(WM_PRECISION_OPTION)
|
GFLAGS = -D$(WM_ARCH) -DWM_$(WM_PRECISION_OPTION)
|
||||||
GINC =
|
GINC =
|
||||||
GLIBS = -lm
|
GLIBS = -lm
|
||||||
GLIB_LIBS =
|
GLIB_LIBS =
|
||||||
|
|||||||
Reference in New Issue
Block a user