diff --git a/src/OpenFOAM/db/dictionary/functionEntries/ifeqEntry/ifeqEntry.C b/src/OpenFOAM/db/dictionary/functionEntries/ifeqEntry/ifeqEntry.C index 4d8f1c189f18faf40868f78179c9103a8aabc393..79a11deab3a9408455a37ed310be7f822c6a6c60 100644 --- a/src/OpenFOAM/db/dictionary/functionEntries/ifeqEntry/ifeqEntry.C +++ b/src/OpenFOAM/db/dictionary/functionEntries/ifeqEntry/ifeqEntry.C @@ -83,13 +83,8 @@ Foam::token Foam::functionEntries::ifeqEntry::expand { const word varName(keyword.substr(1, keyword.size()-1)); - // lookup the variable name in the given dictionary - const entry* ePtr = dict.lookupScopedEntryPtr - ( - varName, - true, - true - ); + // Lookup the variable name in the given dictionary + const entry* ePtr = dict.findScoped(varName, keyType::REGEX_RECURSIVE); if (ePtr) { return token(ePtr->stream());