mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: resolve clamp() float/double ambiguity (SPDP compilation)
- pass by value instead of reference, add functional casts in some places. Can still rely on integer promotions though. OK: clamp(value, 2, 20) ==> (float, int, int) OK: clamp(value, scalar(2), scalar(20)) ==> (float, float, float) NOK: clamp(value, 2.0, 20) ==> (float, double, int)
This commit is contained in:
@ -1,7 +1,2 @@
|
||||
EXE_INC = \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude
|
||||
|
||||
EXE_LIBS = \
|
||||
-lfiniteVolume \
|
||||
-lmeshTools
|
||||
/* EXE_INC = */
|
||||
/* EXE_LIBS = */
|
||||
|
||||
@ -28,7 +28,7 @@ Description
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "fvCFD.H"
|
||||
#include "argList.H"
|
||||
#include "Time.H"
|
||||
#include "BitOps.H"
|
||||
#include "HashOps.H"
|
||||
|
||||
Reference in New Issue
Block a user