From f99880cbeadeae48303da59563af5bd7ad851ec6 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 8 May 2018 09:51:15 +0200 Subject: [PATCH] ENH: add nodeValues option for ensightWrite function object (closes #734) --- .../utilities/ensightWrite/ensightWrite.C | 16 +++++++++------- .../utilities/ensightWrite/ensightWrite.H | 1 + .../ensightWrite/ensightWriteTemplates.C | 5 +++-- .../windAroundBuildings/system/ensightWrite | 2 ++ 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/functionObjects/utilities/ensightWrite/ensightWrite.C b/src/functionObjects/utilities/ensightWrite/ensightWrite.C index b286935733..3d65005a70 100644 --- a/src/functionObjects/utilities/ensightWrite/ensightWrite.C +++ b/src/functionObjects/utilities/ensightWrite/ensightWrite.C @@ -111,30 +111,32 @@ bool Foam::functionObjects::ensightWrite::read(const dictionary& dict) if (dict.found("patches")) { - wordRes lst(dict.lookup("patches")); - lst.uniq(); + wordRes list(dict.lookup("patches")); + list.uniq(); - writeOpts_.patchSelection(lst); + writeOpts_.patchSelection(list); } if (dict.found("faceZones")) { - wordRes lst(dict.lookup("faceZones")); - lst.uniq(); + wordRes list(dict.lookup("faceZones")); + list.uniq(); - writeOpts_.faceZoneSelection(lst); + writeOpts_.faceZoneSelection(list); } // // case options // + + caseOpts_.nodeValues(dict.lookupOrDefault("nodeValues", false)); + caseOpts_.width(dict.lookupOrDefault