ENH: reduce storage requirement for volumeType

- char instead of integer representation for the enumeration.

- additional constructor as lookupOrDefault from dictionary entry.
This commit is contained in:
Mark Olesen
2018-07-11 08:50:38 +02:00
parent d530bc254a
commit a7e37656e8
6 changed files with 70 additions and 65 deletions

View File

@ -32,7 +32,7 @@ License
namespace Foam
{
defineTypeNameAndDebug(conformationSurfaces, 0);
defineTypeNameAndDebug(conformationSurfaces, 0);
}
@ -71,8 +71,7 @@ void Foam::conformationSurfaces::hasBoundedVolume
referenceVolumeTypes[s] = vTypes[0];
Info<< " is "
<< volumeType::names[referenceVolumeTypes[s]]
Info<< " is " << referenceVolumeTypes[s].str()
<< " surface " << surface.name()
<< endl;
}