Skip to content
Snippets Groups Projects
Commit ccc1a89c authored by Henry Weller's avatar Henry Weller
Browse files

motionSolver: Changed keyword to select the motionSolver type to "motionSolver"

with backward-compatibility so that the previous keyword "solver" is supported.
parent 3b2ab88f
No related merge requests found
......@@ -104,7 +104,12 @@ Foam::autoPtr<Foam::motionSolver> Foam::motionSolver::New
const IOdictionary& solverDict
)
{
const word solverTypeName(solverDict.lookup("motionSolver"));
const word solverTypeName
(
solverDict.found("motionSolver")
? solverDict.lookup("motionSolver")
: solverDict.lookup("solver")
);
Info<< "Selecting motion solver: " << solverTypeName << endl;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment