mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
@ -9,7 +9,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels\lnInclude
|
-I$(LIB_SRC)/regionFaModels/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
|
|||||||
@ -7,7 +7,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels\lnInclude
|
-I$(LIB_SRC)/regionFaModels/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
|
|||||||
@ -10,7 +10,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels\lnInclude
|
-I$(LIB_SRC)/regionFaModels/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
|
|||||||
@ -7,7 +7,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels\lnInclude
|
-I$(LIB_SRC)/regionFaModels/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
|
|||||||
@ -19,7 +19,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels\lnInclude
|
-I$(LIB_SRC)/regionFaModels/lnInclude
|
||||||
|
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
|
|||||||
@ -8,7 +8,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels\lnInclude
|
-I$(LIB_SRC)/regionFaModels/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
|
|||||||
@ -30,8 +30,8 @@ Description
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef CGALTriangulation3DKernel_H
|
#ifndef Foam_CGALTriangulation3DKernel_H
|
||||||
#define CGALTriangulation3DKernel_H
|
#define Foam_CGALTriangulation3DKernel_H
|
||||||
|
|
||||||
// Silence boost bind deprecation warnings (before CGAL-5.2.1)
|
// Silence boost bind deprecation warnings (before CGAL-5.2.1)
|
||||||
#include "CGAL/version.h"
|
#include "CGAL/version.h"
|
||||||
@ -54,9 +54,19 @@ Description
|
|||||||
// #include "CGAL/Robust_circumcenter_traits_3.h"
|
// #include "CGAL/Robust_circumcenter_traits_3.h"
|
||||||
// typedef CGAL::Robust_circumcenter_traits_3<baseK> K;
|
// typedef CGAL::Robust_circumcenter_traits_3<baseK> K;
|
||||||
|
|
||||||
|
#if defined(CGAL_VERSION_NR) && (CGAL_VERSION_NR < 1050500000)
|
||||||
|
// Prior to CGAL-5.5
|
||||||
|
|
||||||
#include "CGAL/Robust_circumcenter_filtered_traits_3.h"
|
#include "CGAL/Robust_circumcenter_filtered_traits_3.h"
|
||||||
typedef CGAL::Robust_circumcenter_filtered_traits_3<baseK> K;
|
typedef CGAL::Robust_circumcenter_filtered_traits_3<baseK> K;
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#include "CGAL/Robust_weighted_circumcenter_filtered_traits_3.h"
|
||||||
|
typedef CGAL::Robust_weighted_circumcenter_filtered_traits_3<baseK> K;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// Very robust but expensive kernel
|
// Very robust but expensive kernel
|
||||||
|
|||||||
@ -4,7 +4,6 @@ EXE_INC = \
|
|||||||
-Wno-old-style-cast \
|
-Wno-old-style-cast \
|
||||||
$(COMP_FLAGS) \
|
$(COMP_FLAGS) \
|
||||||
${CGAL_INC} \
|
${CGAL_INC} \
|
||||||
-DCGAL_HEADER_ONLY \
|
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/surfMesh/lnInclude \
|
-I$(LIB_SRC)/surfMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
@ -12,7 +11,6 @@ EXE_INC = \
|
|||||||
|
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
/* ${CGAL_LIBS} */ \
|
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-lsurfMesh \
|
-lsurfMesh \
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2017 OpenFOAM Foundation
|
Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
Copyright (C) 2018-2022 OpenCFD Ltd.
|
Copyright (C) 2018-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -489,12 +489,12 @@ public:
|
|||||||
|
|
||||||
//- Collect indirect data in processor order on master
|
//- Collect indirect data in processor order on master
|
||||||
// Handles contiguous/non-contiguous data, skips empty fields.
|
// Handles contiguous/non-contiguous data, skips empty fields.
|
||||||
template<class Type, class Addr>
|
template<class ProcIDsContainer, class Type, class Addr>
|
||||||
static void gather
|
static void gather
|
||||||
(
|
(
|
||||||
const labelUList& offsets, //!< offsets (master only)
|
const labelUList& offsets, //!< offsets (master only)
|
||||||
const label comm, //!< communicator
|
const label comm, //!< communicator
|
||||||
const UList<int>& procIDs,
|
const ProcIDsContainer& procIDs,
|
||||||
const IndirectListBase<Type, Addr>& fld,
|
const IndirectListBase<Type, Addr>& fld,
|
||||||
List<Type>& allFld, //! output field (master only)
|
List<Type>& allFld, //! output field (master only)
|
||||||
const int tag = UPstream::msgType(),
|
const int tag = UPstream::msgType(),
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2013-2017 OpenFOAM Foundation
|
Copyright (C) 2013-2017 OpenFOAM Foundation
|
||||||
Copyright (C) 2019-2022 OpenCFD Ltd.
|
Copyright (C) 2019-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -248,12 +248,12 @@ void Foam::globalIndex::gather
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class Type, class Addr>
|
template<class ProcIDsContainer, class Type, class Addr>
|
||||||
void Foam::globalIndex::gather
|
void Foam::globalIndex::gather
|
||||||
(
|
(
|
||||||
const labelUList& off, // needed on master only
|
const labelUList& off, // needed on master only
|
||||||
const label comm,
|
const label comm,
|
||||||
const UList<int>& procIDs,
|
const ProcIDsContainer& procIDs,
|
||||||
const IndirectListBase<Type, Addr>& fld,
|
const IndirectListBase<Type, Addr>& fld,
|
||||||
List<Type>& allFld,
|
List<Type>& allFld,
|
||||||
const int tag,
|
const int tag,
|
||||||
@ -368,7 +368,7 @@ void Foam::globalIndex::gather
|
|||||||
(
|
(
|
||||||
offsets_, // needed on master only
|
offsets_, // needed on master only
|
||||||
comm,
|
comm,
|
||||||
UPstream::procID(comm),
|
UPstream::allProcs(comm), // All communicator ranks
|
||||||
sendData,
|
sendData,
|
||||||
allData,
|
allData,
|
||||||
tag,
|
tag,
|
||||||
@ -404,7 +404,7 @@ void Foam::globalIndex::gather
|
|||||||
(
|
(
|
||||||
offsets_, // needed on master only
|
offsets_, // needed on master only
|
||||||
comm,
|
comm,
|
||||||
UPstream::procID(comm),
|
UPstream::allProcs(comm), // All communicator ranks
|
||||||
sendData,
|
sendData,
|
||||||
allData,
|
allData,
|
||||||
tag,
|
tag,
|
||||||
@ -622,7 +622,7 @@ void Foam::globalIndex::mpiGather
|
|||||||
(
|
(
|
||||||
offsets_, // needed on master only
|
offsets_, // needed on master only
|
||||||
comm,
|
comm,
|
||||||
UPstream::procID(comm),
|
UPstream::allProcs(comm), // All communicator ranks
|
||||||
sendData,
|
sendData,
|
||||||
allData,
|
allData,
|
||||||
tag,
|
tag,
|
||||||
@ -967,7 +967,7 @@ void Foam::globalIndex::scatter
|
|||||||
(
|
(
|
||||||
offsets_, // needed on master only
|
offsets_, // needed on master only
|
||||||
comm,
|
comm,
|
||||||
UPstream::procID(comm),
|
UPstream::allProcs(comm), // All communicator ranks
|
||||||
allData,
|
allData,
|
||||||
localData,
|
localData,
|
||||||
tag,
|
tag,
|
||||||
|
|||||||
@ -79,8 +79,8 @@ bool Foam::laminarModels::generalizedNewtonianViscosityModels::Casson::read
|
|||||||
|
|
||||||
coeffs.readEntry("m", m_);
|
coeffs.readEntry("m", m_);
|
||||||
coeffs.readEntry("tau0", tau0_);
|
coeffs.readEntry("tau0", tau0_);
|
||||||
coeffs.readEntry("nuMin_", nuMin_);
|
coeffs.readEntry("nuMin", nuMin_);
|
||||||
coeffs.readEntry("nuMax_", nuMax_);
|
coeffs.readEntry("nuMax", nuMax_);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -389,7 +389,7 @@ bool Foam::functionObjects::fvExpressionField::read(const dictionary& dict)
|
|||||||
}
|
}
|
||||||
|
|
||||||
autowrite_ = dict.getOrDefault("autowrite", false);
|
autowrite_ = dict.getOrDefault("autowrite", false);
|
||||||
store_ = dict.getOrDefault("autowrite", true);
|
store_ = dict.getOrDefault("store", true);
|
||||||
|
|
||||||
// "dimensions" is optional
|
// "dimensions" is optional
|
||||||
dimensions_.clear();
|
dimensions_.clear();
|
||||||
|
|||||||
@ -103,7 +103,7 @@ bool Foam::functionObjects::ensightWrite::readSelection(const dictionary& dict)
|
|||||||
selectFields_.uniq();
|
selectFields_.uniq();
|
||||||
|
|
||||||
blockFields_.clear();
|
blockFields_.clear();
|
||||||
dict.readIfPresent("blockFields", blockFields_);
|
dict.readIfPresent("excludeFields", blockFields_);
|
||||||
blockFields_.uniq();
|
blockFields_.uniq();
|
||||||
|
|
||||||
// Actions to define selection
|
// Actions to define selection
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2016-2017 OpenFOAM Foundation
|
Copyright (C) 2016-2017 OpenFOAM Foundation
|
||||||
Copyright (C) 2018-2022 OpenCFD Ltd.
|
Copyright (C) 2018-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -71,7 +71,7 @@ Foam::fv::limitVelocity::limitVelocity
|
|||||||
:
|
:
|
||||||
fv::cellSetOption(name, modelType, dict, mesh),
|
fv::cellSetOption(name, modelType, dict, mesh),
|
||||||
writeFile(mesh, name, typeName, dict, false),
|
writeFile(mesh, name, typeName, dict, false),
|
||||||
UName_(word::null),
|
UName_("U"),
|
||||||
max_(0)
|
max_(0)
|
||||||
{
|
{
|
||||||
read(dict);
|
read(dict);
|
||||||
|
|||||||
@ -5,8 +5,8 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2007-2021 PCOpt/NTUA
|
Copyright (C) 2007-2023 PCOpt/NTUA
|
||||||
Copyright (C) 2013-2021 FOSS GP
|
Copyright (C) 2013-2023 FOSS GP
|
||||||
Copyright (C) 2019 OpenCFD Ltd.
|
Copyright (C) 2019 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -86,10 +86,9 @@ void ATCUaGradU::addATC(fvVectorMatrix& UaEqn)
|
|||||||
if (extraConvection_ > 0)
|
if (extraConvection_ > 0)
|
||||||
{
|
{
|
||||||
// Implicit part added to increase diagonal dominance
|
// Implicit part added to increase diagonal dominance
|
||||||
// Note: Maybe this needs to be multiplied with the ATClimiter ??
|
UaEqn += ATClimiter_*extraConvection_*fvm::div(-phi, Ua);
|
||||||
UaEqn += extraConvection_*fvm::div(-phi, Ua);
|
|
||||||
|
|
||||||
// correct rhs due to implicitly augmenting the adjoint convection
|
// Correct rhs due to implicitly augmenting the adjoint convection
|
||||||
ATC_ += extraConvection_*(fvc::grad(UaForATC(), "gradUaATC")().T() & U);
|
ATC_ += extraConvection_*(fvc::grad(UaForATC(), "gradUaATC")().T() & U);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -5,8 +5,8 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2007-2021 PCOpt/NTUA
|
Copyright (C) 2007-2023 PCOpt/NTUA
|
||||||
Copyright (C) 2013-2021 FOSS GP
|
Copyright (C) 2013-2023 FOSS GP
|
||||||
Copyright (C) 2019 OpenCFD Ltd.
|
Copyright (C) 2019 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -90,10 +90,9 @@ void ATCstandard::addATC(fvVectorMatrix& UaEqn)
|
|||||||
if (extraConvection_ > 0)
|
if (extraConvection_ > 0)
|
||||||
{
|
{
|
||||||
// Implicit part added to increase diagonal dominance
|
// Implicit part added to increase diagonal dominance
|
||||||
// Note: Maybe this needs to be multiplied with the ATClimiter ??
|
UaEqn += ATClimiter_*extraConvection_*fvm::div(-phi, Ua);
|
||||||
UaEqn += extraConvection_*fvm::div(-phi, Ua);
|
|
||||||
|
|
||||||
// correct rhs due to implicitly augmenting the adjoint convection
|
// Correct rhs due to implicitly augmenting the adjoint convection
|
||||||
ATC_ += extraConvection_*(fvc::grad(Ua, "gradUaATC")().T() & U);
|
ATC_ += extraConvection_*(fvc::grad(Ua, "gradUaATC")().T() & U);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1942,7 +1942,7 @@ Foam::distributedTriSurfaceMesh::independentlyDistributedBbs
|
|||||||
// //globalBorderTris.gather
|
// //globalBorderTris.gather
|
||||||
// //(
|
// //(
|
||||||
// // UPstream::worldComm,
|
// // UPstream::worldComm,
|
||||||
// // UPstream::procID(Pstream::worldComm),
|
// // UPstream::allProcs(UPstream::worldComm),
|
||||||
// // globalBorderCentres
|
// // globalBorderCentres
|
||||||
// //);
|
// //);
|
||||||
// pointField globalBorderCentres(allCentres);
|
// pointField globalBorderCentres(allCentres);
|
||||||
@ -1989,7 +1989,7 @@ Foam::distributedTriSurfaceMesh::independentlyDistributedBbs
|
|||||||
// //globalBorderTris.scatter
|
// //globalBorderTris.scatter
|
||||||
// //(
|
// //(
|
||||||
// // UPstream::worldComm,
|
// // UPstream::worldComm,
|
||||||
// // UPstream::procID(Pstream::worldComm),
|
// // UPstream::allProcs(UPstream::worldComm),
|
||||||
// // isMasterPoint
|
// // isMasterPoint
|
||||||
// //);
|
// //);
|
||||||
// //boolList isMasterBorder(s.size(), false);
|
// //boolList isMasterBorder(s.size(), false);
|
||||||
@ -2087,7 +2087,7 @@ Foam::distributedTriSurfaceMesh::independentlyDistributedBbs
|
|||||||
globalTris().gather
|
globalTris().gather
|
||||||
(
|
(
|
||||||
UPstream::worldComm,
|
UPstream::worldComm,
|
||||||
UPstream::procID(Pstream::worldComm),
|
UPstream::allProcs(UPstream::worldComm),
|
||||||
allCentres
|
allCentres
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -2137,7 +2137,7 @@ Foam::distributedTriSurfaceMesh::independentlyDistributedBbs
|
|||||||
globalTris().scatter
|
globalTris().scatter
|
||||||
(
|
(
|
||||||
UPstream::worldComm,
|
UPstream::worldComm,
|
||||||
UPstream::procID(Pstream::worldComm),
|
UPstream::allProcs(UPstream::worldComm),
|
||||||
allDistribution,
|
allDistribution,
|
||||||
distribution
|
distribution
|
||||||
);
|
);
|
||||||
|
|||||||
@ -82,7 +82,7 @@ Foam::tmp<Foam::Field<Type>> Foam::ensightSurfaceReader::readField
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check that data type is as expected
|
// Check that data type is as expected
|
||||||
// (assumes OpenFOAM generated the data set)
|
// (assuming OpenFOAM generated the data set)
|
||||||
string primitiveType;
|
string primitiveType;
|
||||||
is.read(primitiveType);
|
is.read(primitiveType);
|
||||||
|
|
||||||
@ -90,7 +90,8 @@ Foam::tmp<Foam::Field<Type>> Foam::ensightSurfaceReader::readField
|
|||||||
|
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
primitiveType != ensightPTraits<Type>::typeName
|
debug
|
||||||
|
&& primitiveType != ensightPTraits<Type>::typeName
|
||||||
&& primitiveType != pTraits<Type>::typeName
|
&& primitiveType != pTraits<Type>::typeName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -119,8 +119,8 @@ bool Foam::viscosityModels::Casson::read
|
|||||||
|
|
||||||
CassonCoeffs_.readEntry("m", m_);
|
CassonCoeffs_.readEntry("m", m_);
|
||||||
CassonCoeffs_.readEntry("tau0", tau0_);
|
CassonCoeffs_.readEntry("tau0", tau0_);
|
||||||
CassonCoeffs_.readEntry("nuMin_", nuMin_);
|
CassonCoeffs_.readEntry("nuMin", nuMin_);
|
||||||
CassonCoeffs_.readEntry("nuMax_", nuMax_);
|
CassonCoeffs_.readEntry("nuMax", nuMax_);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,21 +1,26 @@
|
|||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
# CGAL definitions - several possibilities
|
# CGAL definitions - several possibilities
|
||||||
#
|
#
|
||||||
# 0. missing
|
# - missing
|
||||||
# 1. header-only
|
# - header-only
|
||||||
# 2. library, no mpfr
|
# - header-only, no mpfr
|
||||||
# 3. library, with mpfr (a likely default)
|
# - library, no mpfr
|
||||||
|
# - library, with mpfr (default for older CGAL)
|
||||||
#
|
#
|
||||||
# Dispatch according to the defined 'CGAL_FLAVOUR'
|
# Dispatch according to the defined 'CGAL_FLAVOUR'
|
||||||
# - names may change [see wmake/scripts/have_cgal]
|
# - names may change [see wmake/scripts/have_cgal]
|
||||||
# (no-cgal | cgal-header | cgal-no-mpfr | cgal-mpfr)
|
# (no-cgal | cgal-header | cgal-header-no-mpfr | cgal-no-mpfr | cgal-mpfr)
|
||||||
|
|
||||||
cgal_subrule := cgal-mpfr
|
cgal_subrule := cgal-mpfr
|
||||||
ifneq (,$(findstring header,$(CGAL_FLAVOUR)))
|
|
||||||
cgal_subrule := cgal-header-only
|
|
||||||
endif
|
|
||||||
ifneq (,$(findstring no-mpfr,$(CGAL_FLAVOUR)))
|
ifneq (,$(findstring no-mpfr,$(CGAL_FLAVOUR)))
|
||||||
cgal_subrule := cgal-no-mpfr
|
cgal_subrule := cgal-no-mpfr
|
||||||
|
ifneq (,$(findstring header,$(CGAL_FLAVOUR)))
|
||||||
|
cgal_subrule := cgal-header-no-mpfr
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
ifneq (,$(findstring header,$(CGAL_FLAVOUR)))
|
||||||
|
cgal_subrule := cgal-header-only
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
|||||||
18
wmake/rules/General/cgal-header-no-mpfr
Normal file
18
wmake/rules/General/cgal-header-no-mpfr
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# CGAL (header-only version) without mpfr
|
||||||
|
|
||||||
|
CGAL_INC = -DCGAL_HEADER_ONLY
|
||||||
|
CGAL_LIBS =
|
||||||
|
|
||||||
|
CGAL_INC += \
|
||||||
|
$(foreach dir,$(BOOST_INC_DIR),-I$(dir)) \
|
||||||
|
$(foreach dir,$(CGAL_INC_DIR),-I$(dir))
|
||||||
|
|
||||||
|
CGAL_LIBS += \
|
||||||
|
$(foreach dir,$(BOOST_LIB_DIR),-L$(dir))
|
||||||
|
|
||||||
|
# ----
|
||||||
|
# Extra failsafe - still needed? (2020-05-15)
|
||||||
|
## CGAL_INC += -I/usr/local/include -I/usr/include
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
@ -1,14 +0,0 @@
|
|||||||
# ----------------------------------------------------------------------------
|
|
||||||
# CGAL on Darwin
|
|
||||||
# CGAL (library version) without mpfr
|
|
||||||
|
|
||||||
CGAL_INC = \
|
|
||||||
$(foreach dir,$(BOOST_INC_DIR),-I$(dir)) \
|
|
||||||
$(foreach dir,$(CGAL_INC_DIR),-I$(dir))
|
|
||||||
|
|
||||||
CGAL_LIBS = \
|
|
||||||
$(foreach dir,$(BOOST_LIB_DIR),-L$(dir)) \
|
|
||||||
$(foreach dir,$(CGAL_LIB_DIR),-L$(dir)) \
|
|
||||||
-lCGAL
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
|
||||||
@ -35,6 +35,7 @@ LINKLIBSO = $(CC) $(c++FLAGS) -shared \
|
|||||||
-Wl,--strip-all
|
-Wl,--strip-all
|
||||||
|
|
||||||
LINKEXE = $(CC) $(c++FLAGS) \
|
LINKEXE = $(CC) $(c++FLAGS) \
|
||||||
|
-static-libgcc -static-libstdc++ \
|
||||||
-Wl,--enable-auto-import \
|
-Wl,--enable-auto-import \
|
||||||
-Wl,--strip-all \
|
-Wl,--strip-all \
|
||||||
-Wl,--force-exe-suffix
|
-Wl,--force-exe-suffix
|
||||||
|
|||||||
Reference in New Issue
Block a user