Commit 8df0a702 authored by Andrew Heather's avatar Andrew Heather
Browse files

STYLE: Minor code update

parent 35307112
...@@ -71,8 +71,7 @@ bool Foam::dynamicMotionSolverFvMesh::update() ...@@ -71,8 +71,7 @@ bool Foam::dynamicMotionSolverFvMesh::update()
if (foundObject<volVectorField>("U")) if (foundObject<volVectorField>("U"))
{ {
volVectorField& U = volVectorField& U = lookupObjectRef<volVectorField>("U");
const_cast<volVectorField&>(lookupObject<volVectorField>("U"));
U.correctBoundaryConditions(); U.correctBoundaryConditions();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment