diff --git a/dumux/common/loggingparametertree.hh b/dumux/common/loggingparametertree.hh index a2d09a51c55670873581fcc542ca2d5188dc13cd..19d4b9c746067e33a7e6b3a9938078a197de1915 100644 --- a/dumux/common/loggingparametertree.hh +++ b/dumux/common/loggingparametertree.hh @@ -363,10 +363,10 @@ public: // look for the next dot in the current prefix dot = prefix.rfind("."); } - - // TODO: doc me! - // TODO: clean up + // reset the compoundKey compoundKey = groupPrefix + "." + key; + + // if the backward search did not succeed, try the bare key without any prefix if (params_.hasKey(key)) { // log that we used this parameter @@ -374,6 +374,7 @@ public: return params_.template get<T>(key); } + // if this did not work, repeat the procedure using the default parameters else if(defaultParams_.hasKey(compoundKey)) { // use the default