diff --git a/applications/modules/multiphaseEuler/multiphaseEuler/setRDeltaT.C b/applications/modules/multiphaseEuler/multiphaseEuler/setRDeltaT.C index 44edde958c..cfd37ec593 100644 --- a/applications/modules/multiphaseEuler/multiphaseEuler/setRDeltaT.C +++ b/applications/modules/multiphaseEuler/multiphaseEuler/setRDeltaT.C @@ -47,9 +47,9 @@ void Foam::solvers::multiphaseEuler::setRDeltaT() surfaceScalarField maxPhi("maxPhi", phi); - forAll(phases, phasei) + forAll(movingPhases, movingPhasei) { - maxPhi = max(maxPhi, mag(phases[phasei].phi())); + maxPhi = max(maxPhi, mag(movingPhases[movingPhasei].phi())); } // Set the reciprocal time-step from the local Courant number