diff --git a/applications/solvers/incompressible/icoFoam/createFields.H b/applications/solvers/incompressible/icoFoam/createFields.H index 438c67ea29..02093c3938 100644 --- a/applications/solvers/incompressible/icoFoam/createFields.H +++ b/applications/solvers/incompressible/icoFoam/createFields.H @@ -52,4 +52,4 @@ label pRefCell = 0; scalar pRefValue = 0.0; - setRefCell(p, piso.dict(), pRefCell, pRefValue); + setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue); diff --git a/applications/solvers/incompressible/nonNewtonianIcoFoam/createFields.H b/applications/solvers/incompressible/nonNewtonianIcoFoam/createFields.H index ea10104b91..ef08e58c7d 100644 --- a/applications/solvers/incompressible/nonNewtonianIcoFoam/createFields.H +++ b/applications/solvers/incompressible/nonNewtonianIcoFoam/createFields.H @@ -36,4 +36,4 @@ label pRefCell = 0; scalar pRefValue = 0.0; - setRefCell(p, piso.dict(), pRefCell, pRefValue); + setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);