MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / subDict

Function subDict

src/OpenFOAM/db/dictionary/dictionary.C:692–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690
691
692const Foam::dictionary& Foam::dictionary::subDict(const word& keyword) const
693{
694 const entry* entryPtr = lookupEntryPtr(keyword, false, true);
695
696 if (entryPtr == nullptr)
697 {
698 FatalIOErrorInFunction
699 (
700 *this
701 ) << "keyword " << keyword << " is undefined in dictionary "
702 << name()
703 << exit(FatalIOError);
704 }
705 return entryPtr->dict();
706}
707
708
709Foam::dictionary& Foam::dictionary::subDict(const word& keyword)

Callers 15

cellShapeControl.CFile · 0.85
phaseSystem.CFile · 0.85
twoPhaseSystem.CFile · 0.85
readFunction · 0.85
fvSchemes.CFile · 0.85
writeAveragingPropertiesFunction · 0.85
data.CFile · 0.85
solution.CFile · 0.85
debug.CFile · 0.85

Calls 3

lookupEntryPtrFunction · 0.85
nameFunction · 0.50
exitFunction · 0.50

Tested by

no test coverage detected