STYLE: Minor code update

This commit is contained in:
Andrew Heather 2018-06-05 16:42:03 +01:00
parent 3530711219
commit 8df0a7022a

View File

@ -71,8 +71,7 @@ bool Foam::dynamicMotionSolverFvMesh::update()
if (foundObject<volVectorField>("U"))
{
volVectorField& U =
const_cast<volVectorField&>(lookupObject<volVectorField>("U"));
volVectorField& U = lookupObjectRef<volVectorField>("U");
U.correctBoundaryConditions();
}