diff --git a/applications/solvers/incompressible/simpleFoam/porousSimpleFoam/createPorousZones.H b/applications/solvers/incompressible/simpleFoam/porousSimpleFoam/createPorousZones.H index e4614b7063469dc05af8911a540300939c1c3a96..5c6dbea19c4122682311089f3a5f3ddb16d870f6 100644 --- a/applications/solvers/incompressible/simpleFoam/porousSimpleFoam/createPorousZones.H +++ b/applications/solvers/incompressible/simpleFoam/porousSimpleFoam/createPorousZones.H @@ -1,9 +1,9 @@ - porousZones pZones(mesh); + IOporosityModelList pZones(mesh); Switch pressureImplicitPorosity(false); // nUCorrectors used for pressureImplicitPorosity int nUCorr = 0; - if (pZones.size()) + if (pZones.active()) { // nUCorrectors for pressureImplicitPorosity nUCorr = simple.dict().lookupOrDefault<int>("nUCorrectors", 0); diff --git a/applications/solvers/incompressible/simpleFoam/porousSimpleFoam/porousSimpleFoam.C b/applications/solvers/incompressible/simpleFoam/porousSimpleFoam/porousSimpleFoam.C index ef10119a9e372f0f8c6023d75c5f14d5bbf3bc41..bde78bcbe155eb56a0a213c688e1ee317a1f0d4a 100644 --- a/applications/solvers/incompressible/simpleFoam/porousSimpleFoam/porousSimpleFoam.C +++ b/applications/solvers/incompressible/simpleFoam/porousSimpleFoam/porousSimpleFoam.C @@ -33,7 +33,7 @@ Description #include "fvCFD.H" #include "singlePhaseTransportModel.H" #include "RASModel.H" -#include "porousZones.H" +#include "IOporosityModelList.H" #include "simpleControl.H" #include "IObasicSourceList.H"