ENH: support search options on more dictionary methods
- can now specify literal matches for sub-dictionary methods: isDict(key, keyType::REGEX) optionalSubDict(key, keyType::REGEX) subDict(key, keyType::REGEX) subOrEmptyDict(key, keyType::REGEX, mandatory) There is no change in behaviour of the methods, just the search option is now exposed as an optional parameter. NOTE: minor breaking change for subOrEmptyDict() old: subOrEmptyDict(key, bool=false) new: subOrEmptyDict(key, keyType::option=keyType::REGEX, bool=false) This affects code that previously explicitly set the bool parameter. Within OpenFOAM itself, this only affected a single file: KinematicCloud.C
Showing
- src/OpenFOAM/db/dictionary/dictionary.C 28 additions, 15 deletionssrc/OpenFOAM/db/dictionary/dictionary.C
- src/OpenFOAM/db/dictionary/dictionary.H 29 additions, 9 deletionssrc/OpenFOAM/db/dictionary/dictionary.H
- src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.C 7 additions, 1 deletion...rmediate/clouds/Templates/KinematicCloud/KinematicCloud.C
Please register or sign in to comment