COMP: lduMatrix::defaultTolerance as variable instead of constexpr

- gcc48 has linkage errors with constexpr floats (sometimes?)
This commit is contained in:
Mark Olesen 2022-07-13 19:05:43 +02:00
parent 6e393ccbc8
commit ff33bfda96
2 changed files with 6 additions and 4 deletions

View File

@ -41,6 +41,8 @@ namespace Foam
}
const Foam::scalar Foam::lduMatrix::defaultTolerance = 1e-6;
const Foam::Enum
<
Foam::lduMatrix::normTypes

View File

@ -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