Skip to content
Snippets Groups Projects
Commit 0430ad47 authored by mattijs's avatar mattijs
Browse files

ENH: modifyMesh: added -dict argument

parent aad962a0
Branches
Tags
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -336,6 +336,7 @@ label findCell(const primitiveMesh& mesh, const point& nearPoint) ...@@ -336,6 +336,7 @@ label findCell(const primitiveMesh& mesh, const point& nearPoint)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#include "addOverwriteOption.H" #include "addOverwriteOption.H"
#include "addDictOption.H"
#include "setRootCase.H" #include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
...@@ -347,17 +348,10 @@ int main(int argc, char *argv[]) ...@@ -347,17 +348,10 @@ int main(int argc, char *argv[])
Info<< "Reading modifyMeshDict\n" << endl; Info<< "Reading modifyMeshDict\n" << endl;
IOdictionary dict // Read meshing dictionary
( const word dictName("modifyMeshDict");
IOobject #include "setSystemMeshDictionaryIO.H"
( const IOdictionary dict(dictIO);
"modifyMeshDict",
runTime.system(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
// Read all from the dictionary. // Read all from the dictionary.
List<Pair<point>> pointsToMove(dict.lookup("pointsToMove")); List<Pair<point>> pointsToMove(dict.lookup("pointsToMove"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment