diff --git a/dumux/decoupled/2p2c/fluxdata2p2c.hh b/dumux/decoupled/2p2c/fluxdata2p2c.hh index 851d9c548ba8bbd8cbd4ad0cc0bf6a04d5c443fb..78490bad27b441249b441695bac7bdeba19d276e 100644 --- a/dumux/decoupled/2p2c/fluxdata2p2c.hh +++ b/dumux/decoupled/2p2c/fluxdata2p2c.hh @@ -78,18 +78,13 @@ public: //! Constructor FluxData2P2C() { - isUpwindCell_.resize(2 * dim); - for (int fIdx = 0; fIdx<2*dim; fIdx++) - { - isUpwindCell_[fIdx] = false; - for (int phaseIdx = 0; phaseIdx<numPhases; ++phaseIdx) - for (int dimIdx = 0; dimIdx < dim; ++dimIdx) - velocity_[phaseIdx][fIdx][dimIdx] = 0.0; - } - + isUpwindCell_.resize(2*dim, 0.0); + for (int phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx) + for (int fIdx = 0; fIdx < 2*dim; ++fIdx) + velocity_[phaseIdx][fIdx] = 0.0; } - /*! \brief Returns the phase velocity vector at a cell-cell interface + /*! \brief Returns the phase velocity vector at a cell-cell interface * * \param phaseIdx Index of a fluid phase * \param indexInInside Index of the cell-cell interface in this cell