utilities: Rationalised and standardised the handling of the -dict option
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user