diff --git a/applications/solvers/basic/potentialFoam/createFields.H b/applications/solvers/basic/potentialFoam/createFields.H index 4b3352557ab1ff61d4b4aa890c0d7cdd89450818..0ce5a68edd2fac728a10e8ce3e720b2a72ea746b 100644 --- a/applications/solvers/basic/potentialFoam/createFields.H +++ b/applications/solvers/basic/potentialFoam/createFields.H @@ -57,9 +57,6 @@ forAll(U.boundaryField(), patchi) } } -// Note that registerObject is false for the pressure field. The pressure -// field in this solver doesn't have a physical value during the solution. -// It shouldn't be looked up and used by sub models or boundary conditions. Info<< "Constructing pressure field " << pName << nl << endl; volScalarField p ( @@ -69,8 +66,7 @@ volScalarField p runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, - IOobject::NO_WRITE, - false + IOobject::NO_WRITE ), mesh, dimensionedScalar(sqr(dimVelocity), Zero),