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

@ -644,8 +644,7 @@ void Foam::searchableSurfacesQueries::signedDistance
<< " point:" << surfPoints[i]
<< " surface:"
<< allSurfaces[surfacesToTest[testI]].name()
<< " volType:"
<< volumeType::names[vT]
<< " volType:" << vT.str()
<< exit(FatalError);
break;
}