mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
DataEntry: Do not instantiate DataEntry<label> for DataEntry types which interpolate
// Polynomial functions and interpolation do evaluate to label
// Instead evaluate a scalar and convert to label as appropriate
// makeDataEntryType(PolynomialEntry, label);
// makeDataEntryType(CSV, label);
// makeDataEntryType(Table, label);
// makeDataEntryType(TableFile, label);
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1987
This commit is contained in:
@ -112,7 +112,6 @@ protected:
|
|||||||
|
|
||||||
// Protected Member Functions
|
// Protected Member Functions
|
||||||
|
|
||||||
|
|
||||||
//- Return (demand driven) interpolator
|
//- Return (demand driven) interpolator
|
||||||
const interpolationWeights& interpolator() const;
|
const interpolationWeights& interpolator() const;
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -43,10 +43,13 @@ namespace Foam
|
|||||||
makeDataEntry(label);
|
makeDataEntry(label);
|
||||||
makeDataEntryType(CompatibilityConstant, label);
|
makeDataEntryType(CompatibilityConstant, label);
|
||||||
makeDataEntryType(Constant, label);
|
makeDataEntryType(Constant, label);
|
||||||
//makeDataEntryType(PolynomialEntry, label);
|
|
||||||
makeDataEntryType(CSV, label);
|
// Polynomial functions and interpolation do evaluate to label
|
||||||
makeDataEntryType(Table, label);
|
// Instead evaluate a scalar and convert to label as appropriate
|
||||||
makeDataEntryType(TableFile, label);
|
// makeDataEntryType(PolynomialEntry, label);
|
||||||
|
// makeDataEntryType(CSV, label);
|
||||||
|
// makeDataEntryType(Table, label);
|
||||||
|
// makeDataEntryType(TableFile, label);
|
||||||
|
|
||||||
makeDataEntry(scalar);
|
makeDataEntry(scalar);
|
||||||
makeDataEntryType(CompatibilityConstant, scalar);
|
makeDataEntryType(CompatibilityConstant, scalar);
|
||||||
|
|||||||
Reference in New Issue
Block a user