mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: more consistent New methods, use unregistered IOobject where appropriate
This commit is contained in:
@ -58,7 +58,8 @@ Foam::motionSolver::motionSolver(const polyMesh& mesh)
|
||||
|
||||
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::autoPtr<Foam::motionSolver> Foam::motionSolver::New(const polyMesh& mesh)
|
||||
Foam::autoPtr<Foam::motionSolver>
|
||||
Foam::motionSolver::New(const polyMesh& mesh)
|
||||
{
|
||||
IOdictionary solverDict
|
||||
(
|
||||
@ -75,7 +76,7 @@ Foam::autoPtr<Foam::motionSolver> Foam::motionSolver::New(const polyMesh& mesh)
|
||||
|
||||
Istream& msData = solverDict.lookup("solver");
|
||||
|
||||
word solverTypeName(msData);
|
||||
const word solverTypeName(msData);
|
||||
|
||||
Info<< "Selecting motion solver: " << solverTypeName << endl;
|
||||
|
||||
@ -103,9 +104,9 @@ Foam::autoPtr<Foam::motionSolver> Foam::motionSolver::New(const polyMesh& mesh)
|
||||
FatalErrorIn
|
||||
(
|
||||
"motionSolver::New(const polyMesh& mesh)"
|
||||
) << "Unknown solver type " << solverTypeName
|
||||
<< endl << endl
|
||||
<< "Valid solver types are: " << endl
|
||||
) << "Unknown solver type "
|
||||
<< solverTypeName << nl << nl
|
||||
<< "Valid solver types are:" << endl
|
||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user