From d16f1312cbd2c160fec7a815c0f6d9b4e2c42ad6 Mon Sep 17 00:00:00 2001
From: Andrew Heather <>
Date: Wed, 1 Apr 2020 10:29:28 +0100
Subject: [PATCH] BUG: P1 model - read qr field if present - see #1659

---
 src/thermophysicalModels/radiation/radiationModels/P1/P1.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/thermophysicalModels/radiation/radiationModels/P1/P1.C b/src/thermophysicalModels/radiation/radiationModels/P1/P1.C
index a678d888e96..1e4de417bf2 100644
--- a/src/thermophysicalModels/radiation/radiationModels/P1/P1.C
+++ b/src/thermophysicalModels/radiation/radiationModels/P1/P1.C
@@ -72,7 +72,7 @@ Foam::radiation::P1::P1(const volScalarField& T)
             "qr",
             mesh_.time().timeName(),
             mesh_,
-            IOobject::NO_READ,
+            IOobject::READ_IF_PRESENT,
             IOobject::AUTO_WRITE
         ),
         mesh_,
-- 
GitLab