Skip to content

Commit 43984a5

Browse files
committed
Bugfix for SPH initial conditions each step
1 parent ef50a56 commit 43984a5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/SPH/SPHBase.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ registerState(DataBase<Dimension>& dataBase,
213213
State<Dimension>& state) {
214214
TIME_BEGIN("SPHBaseRegister");
215215

216+
// Create inital conditions for time step mask and omega correction
217+
dataBase.resizeFluidFieldList(mTimeStepMask, 1, HydroFieldNames::timeStepMask);
218+
dataBase.resizeFluidFieldList(mOmegaGradh, 1.0, HydroFieldNames::omegaGradh);
219+
216220
// We may need the volume per node as well.
217221
const bool updateVolume = (this->densityUpdate() == MassDensityType::VoronoiCellDensity or
218222
this->densityUpdate() == MassDensityType::SumVoronoiCellDensity);

0 commit comments

Comments
 (0)