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

with backward-compatibility so that the previous keyword "solver" is supported.
This commit is contained in:
Henry Weller
2017-04-20 15:59:34 +01:00
parent 0a32d8a11e
commit 6a3409a60a

View File

@ -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;