mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: mark compatibility change in motionSolver keyword
- was "solver" in 1612 and "motionSolver" for later versions
This commit is contained in:
@ -107,12 +107,10 @@ Foam::autoPtr<Foam::motionSolver> Foam::motionSolver::New
|
||||
{
|
||||
const word solverName
|
||||
(
|
||||
solverDict.found("motionSolver")
|
||||
? solverDict.lookup("motionSolver")
|
||||
: solverDict.lookup("solver")
|
||||
solverDict.getCompat<word>("motionSolver", {{"solver", 1612}})
|
||||
);
|
||||
|
||||
Info<< "Selecting motion solver: " << solverName << endl;
|
||||
Info<< "Selecting motion solver: " << solverName << nl;
|
||||
|
||||
const_cast<Time&>(mesh.time()).libs().open
|
||||
(
|
||||
@ -135,7 +133,7 @@ Foam::autoPtr<Foam::motionSolver> Foam::motionSolver::New
|
||||
FatalErrorInFunction
|
||||
<< "Unknown solver type "
|
||||
<< solverName << nl << nl
|
||||
<< "Valid solver types :" << endl
|
||||
<< "Valid solver types :" << nl
|
||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
||||
<< exit(FatalError);
|
||||
}
|
||||
@ -237,10 +235,8 @@ bool Foam::motionSolver::read()
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user