Commit 089ca1a6 authored by sergio's avatar sergio
Browse files

BUG: Init refCell to -1 instead of 0 for multi regions

parent a8e3f067
......@@ -12,7 +12,7 @@ PtrList<volScalarField> p_rghFluid(fluidRegions.size());
PtrList<radiation::radiationModel> radiation(fluidRegions.size());
List<scalar> initialMassFluid(fluidRegions.size());
List<label> pRefCellFluid(fluidRegions.size(), 0);
List<label> pRefCellFluid(fluidRegions.size(), -1);
List<scalar> pRefValueFluid(fluidRegions.size(), 0.0);
List<bool> frozenFlowFluid(fluidRegions.size(), false);
......
......@@ -289,7 +289,7 @@ forAll(fluidRegions, i)
turbulenceFluid[i].validate();
pRefCellFluid[i] = 0;
pRefCellFluid[i] = -1;
pRefValueFluid[i] = 0.0;
if (p_rghFluid[i].needReference())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment