mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: dimensionSet lookup with LITERAL, not REGEX
This commit is contained in:
@ -173,7 +173,7 @@ public:
|
|||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct null (dimensionless).
|
//- Default construct (dimensionless).
|
||||||
dimensionSet();
|
dimensionSet();
|
||||||
|
|
||||||
//- Construct from exponents for the first five or all seven dimensions
|
//- Construct from exponents for the first five or all seven dimensions
|
||||||
|
|||||||
@ -35,7 +35,7 @@ License
|
|||||||
|
|
||||||
Foam::dimensionSet::dimensionSet(const dictionary& dict, const word& entryName)
|
Foam::dimensionSet::dimensionSet(const dictionary& dict, const word& entryName)
|
||||||
{
|
{
|
||||||
const entry& e = dict.lookupEntry(entryName, keyType::REGEX);
|
const entry& e = dict.lookupEntry(entryName, keyType::LITERAL);
|
||||||
ITstream& is = e.stream();
|
ITstream& is = e.stream();
|
||||||
|
|
||||||
is >> *this;
|
is >> *this;
|
||||||
|
|||||||
Reference in New Issue
Block a user