keyType: Added proper type handling and formalised construction from the string types

Rationalised IO of keyType so the internal structure is not duplicated in
if-else structures in dictionary::entry.
This commit is contained in:
Henry Weller
2019-08-17 10:57:22 +01:00
parent c8f4487a07
commit 0b6346c721
11 changed files with 147 additions and 143 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -52,7 +52,7 @@ int main(int argc, char *argv[])
dictionary fieldNameDict;
forAll(fieldNames, i)
{
fieldNameDict.add(fieldNames[i], word(fieldNames[i]));
fieldNameDict.add(word(fieldNames[i]), word(fieldNames[i]));
}
dictionary nameMap;