diff --git a/dumux/io/vtkoutputmodule.hh b/dumux/io/vtkoutputmodule.hh index 7a95aa31ffdda02d49336a6fa9ea4a35d260a9c5..97b94f2be33f232b1158e3c390f5a9eaad1d4cd4 100644 --- a/dumux/io/vtkoutputmodule.hh +++ b/dumux/io/vtkoutputmodule.hh @@ -297,16 +297,15 @@ private: // If velocity output is enabled we need to bind to the whole stencil // otherwise element-local data is sufficient if (velocityOutput.enableOutput()) + { fvGeometry.bind(element); + elemVolVars.bind(element, fvGeometry, sol_); + } else + { fvGeometry.bindElement(element); - - // If velocity output is enabled we need to bind to the whole stencil - // otherwise element-local data is sufficient - if (velocityOutput.enableOutput()) - elemVolVars.bind(element, fvGeometry, sol_); - else if (!volVarScalarDataInfo_.empty()) elemVolVars.bindElement(element, fvGeometry, sol_); + } if (!volVarScalarDataInfo_.empty() || !volVarVectorDataInfo_.empty())