utilities: Rationalised and standardised the handling of the -dict option

This commit is contained in:
Henry Weller
2021-03-05 13:42:46 +00:00
parent d4d21c9c04
commit cf552e6343
16 changed files with 197 additions and 142 deletions

View File

@ -51,6 +51,7 @@ Description
#include "faceSelection.H"
#include "searchableSurface.H"
#include "fvMeshTools.H"
#include "systemDict.H"
using namespace Foam;
@ -450,17 +451,13 @@ int main(int argc, char *argv[])
const word oldInstance = mesh.pointsInstance();
const word dictName("createBafflesDict");
#include "setSystemMeshDictionaryIO.H"
Switch internalFacesOnly(false);
Switch fields(false);
PtrList<faceSelection> selectors;
{
Info<< "Reading baffle criteria from " << dictName << nl << endl;
IOdictionary dict(dictIO);
const dictionary dict(systemDict("createBafflesDict", args, mesh));
dict.lookup("internalFacesOnly") >> internalFacesOnly;
fields = dict.lookupOrDefault("fields", false);