Skip to content
Snippets Groups Projects
Commit 6043c962 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: accept "solver" or "motionSolver" without complaint

- The change from "solver" to "motionSolver" has not been
  applied consistently for all types of motion solvers.
parent aa0f2e0d
Branches
Tags
No related merge requests found
......@@ -105,9 +105,11 @@ Foam::autoPtr<Foam::motionSolver> Foam::motionSolver::New
const IOdictionary& solverDict
)
{
// The change from "solver" to "motionSolver" has not been
// applied consistently. Accept both without complaint.
const word solverName
(
solverDict.getCompat<word>("motionSolver", {{"solver", 1612}})
solverDict.getCompat<word>("motionSolver", {{"solver", -1612}})
);
Info<< "Selecting motion solver: " << solverName << nl;
......
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