diff --git a/applications/modules/multiphaseEuler/phaseSystem/phaseSystem/phaseSystem.C b/applications/modules/multiphaseEuler/phaseSystem/phaseSystem/phaseSystem.C index b04e094834..302a19a7ab 100644 --- a/applications/modules/multiphaseEuler/phaseSystem/phaseSystem/phaseSystem.C +++ b/applications/modules/multiphaseEuler/phaseSystem/phaseSystem/phaseSystem.C @@ -600,13 +600,12 @@ void Foam::phaseSystem::correctKinematics() { phaseModels_[phasei].correctKinematics(); - updateDpdt = updateDpdt || phaseModels_[phasei].thermo().dpdt(); - } - - // Update the pressure time-derivative if required - if (updateDpdt) - { - dpdt_ = fvc::ddt(phaseModels_.begin()().fluidThermo().p()); + // Update the pressure time-derivative if required + if (!updateDpdt && phaseModels_[phasei].thermo().dpdt()) + { + dpdt_ = fvc::ddt(phaseModels_[phasei].fluidThermo().p()); + updateDpdt = true; + } } }