Skip to content
Snippets Groups Projects
Commit 7893f3cc authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[vtk][outputmodule] avoid duplicate if statement

parent d9a23ab8
No related branches found
No related tags found
1 merge request!932Feature/nonconforming vtk output
...@@ -297,16 +297,15 @@ private: ...@@ -297,16 +297,15 @@ private:
// If velocity output is enabled we need to bind to the whole stencil // If velocity output is enabled we need to bind to the whole stencil
// otherwise element-local data is sufficient // otherwise element-local data is sufficient
if (velocityOutput.enableOutput()) if (velocityOutput.enableOutput())
{
fvGeometry.bind(element); fvGeometry.bind(element);
elemVolVars.bind(element, fvGeometry, sol_);
}
else else
{
fvGeometry.bindElement(element); 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_); elemVolVars.bindElement(element, fvGeometry, sol_);
}
if (!volVarScalarDataInfo_.empty() if (!volVarScalarDataInfo_.empty()
|| !volVarVectorDataInfo_.empty()) || !volVarVectorDataInfo_.empty())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment