COMP: lduMatrix::defaultTolerance as variable instead of constexpr
- gcc48 has linkage errors with constexpr floats (sometimes?)
This commit is contained in:
parent
6e393ccbc8
commit
ff33bfda96
@ -41,6 +41,8 @@ namespace Foam
|
||||
}
|
||||
|
||||
|
||||
const Foam::scalar Foam::lduMatrix::defaultTolerance = 1e-6;
|
||||
|
||||
const Foam::Enum
|
||||
<
|
||||
Foam::lduMatrix::normTypes
|
||||
|
@ -108,11 +108,11 @@ public:
|
||||
//- Names for the normTypes
|
||||
static const Enum<normTypes> normTypesNames_;
|
||||
|
||||
//- Default maximum number of iterations for solvers
|
||||
static constexpr label defaultMaxIter = 1000;
|
||||
//- Default maximum number of iterations for solvers (1000)
|
||||
static constexpr const label defaultMaxIter = 1000;
|
||||
|
||||
//- Default (absolute) tolerance
|
||||
static constexpr scalar defaultTolerance = 1e-6;
|
||||
//- Default (absolute) tolerance (1e-6)
|
||||
static const scalar defaultTolerance;
|
||||
|
||||
|
||||
//- Abstract base-class for lduMatrix solvers
|
||||
|
Loading…
Reference in New Issue
Block a user