mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: lduMatrix::defaultTolerance as variable instead of constexpr
- gcc48 has linkage errors with constexpr floats (sometimes?)
This commit is contained in:
@ -41,6 +41,8 @@ namespace Foam
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const Foam::scalar Foam::lduMatrix::defaultTolerance = 1e-6;
|
||||||
|
|
||||||
const Foam::Enum
|
const Foam::Enum
|
||||||
<
|
<
|
||||||
Foam::lduMatrix::normTypes
|
Foam::lduMatrix::normTypes
|
||||||
|
|||||||
@ -108,11 +108,11 @@ public:
|
|||||||
//- Names for the normTypes
|
//- Names for the normTypes
|
||||||
static const Enum<normTypes> normTypesNames_;
|
static const Enum<normTypes> normTypesNames_;
|
||||||
|
|
||||||
//- Default maximum number of iterations for solvers
|
//- Default maximum number of iterations for solvers (1000)
|
||||||
static constexpr label defaultMaxIter = 1000;
|
static constexpr const label defaultMaxIter = 1000;
|
||||||
|
|
||||||
//- Default (absolute) tolerance
|
//- Default (absolute) tolerance (1e-6)
|
||||||
static constexpr scalar defaultTolerance = 1e-6;
|
static const scalar defaultTolerance;
|
||||||
|
|
||||||
|
|
||||||
//- Abstract base-class for lduMatrix solvers
|
//- Abstract base-class for lduMatrix solvers
|
||||||
|
|||||||
Reference in New Issue
Block a user