From 289a7acf761e0cec337c0fc889b3417781062496 Mon Sep 17 00:00:00 2001
From: Andrew Heather <>
Date: Wed, 5 Jun 2019 14:11:50 +0100
Subject: [PATCH] ENH: p field for potentialFoam now registsered

---
 applications/solvers/basic/potentialFoam/createFields.H | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/applications/solvers/basic/potentialFoam/createFields.H b/applications/solvers/basic/potentialFoam/createFields.H
index 4b3352557ab..0ce5a68edd2 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),
-- 
GitLab