From 11bb6b3e76c2dcf972a4846c1ac312f1c241c3b3 Mon Sep 17 00:00:00 2001 From: Andreas Lauser <and@poware.org> Date: Mon, 15 Aug 2011 13:10:46 +0000 Subject: [PATCH] runtime parameters: add forgotten negation news flash: if you forget a "!" in front of an if statement, it will do exactly the opposite what it is supposed to do! git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6489 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/common/parameters.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dumux/common/parameters.hh b/dumux/common/parameters.hh index 6d7778d481..515be93cdb 100644 --- a/dumux/common/parameters.hh +++ b/dumux/common/parameters.hh @@ -382,7 +382,7 @@ private: } // retrieve actual parameter from the parameter tree - if (Params::tree().hasKey(finalName)) { + if (!Params::tree().hasKey(finalName)) { DUNE_THROW(Dune::InvalidStateException, "Mandatory parameter '" << finalName << "' was not specified."); -- GitLab