DataEntry/Table: provide dictionary to base-class to allow the specification of outOfBounds

Resolves bug-reports:
    http://www.openfoam.org/mantisbt/view.php?id=888
    http://www.openfoam.org/mantisbt/view.php?id=788
This commit is contained in:
Henry
2015-01-22 13:32:30 +00:00
parent 5252c800eb
commit ec9fc5b099
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -53,7 +53,7 @@ Foam::autoPtr<Foam::DataEntry<Type> > Foam::DataEntry<Type>::New
}
else
{
// DataEntryType = CompatibilityConstant<Type>::typeName;
// DataEntryType = CompatibilityConstant<Type>::typeName;
DataEntryType = "CompatibilityConstant";
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -31,7 +31,7 @@ template<class Type>
Foam::Table<Type>::Table(const word& entryName, const dictionary& dict)
:
DataEntry<Type>(entryName),
TableBase<Type>(entryName, dictionary::null)
TableBase<Type>(entryName, dict)
{
Istream& is(dict.lookup(entryName));
word entryType(is);