From 8fc838cff3804ca01248c09f70745c4602319b71 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Sun, 17 Jan 2016 21:15:12 +0100 Subject: [PATCH] VTK output modules: make the processElement() method a dummy if the VTK output is disabled an interesting side effect is that the Newton convergence output is only defined if the VTK output is enabled. Also, this patch could be implemented more efficiently by retrieving the EnableVtkOutput only once per output module (instead of once per element). --- applications/ebos/ecloutputblackoilmodule.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/applications/ebos/ecloutputblackoilmodule.hh b/applications/ebos/ecloutputblackoilmodule.hh index 876f54121..e52483b24 100644 --- a/applications/ebos/ecloutputblackoilmodule.hh +++ b/applications/ebos/ecloutputblackoilmodule.hh @@ -158,6 +158,9 @@ public: */ void processElement(const ElementContext &elemCtx) { + if (!EWOMS_GET_PARAM(TypeTag, bool, EnableEclOutput)) + return; + typedef Opm::MathToolbox Toolbox; if (!std::is_same >::value)