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:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user