ENH: lazier field loading in foamToVTK

- avoid loading surface fields if there are no faceZones

- avoid pointMesh if there are no appropriate point fields
This commit is contained in:
Mark Olesen
2017-07-04 11:57:54 +02:00
parent 6dd5a5f35f
commit c5bd5393df
3 changed files with 134 additions and 37 deletions

View File

@ -44,9 +44,9 @@ SourceFiles
namespace Foam
{
// Read the fields and optionally subset and put on the pointer list
// Read the fields, optionally subset, and place on the pointer list
template<class GeoField>
void readFields
label readFields
(
const meshSubsetHelper& helper,
const typename GeoField::Mesh& mesh,