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

Function optionalSubDict

src/OpenFOAM/db/dictionary/dictionary.C:758–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756
757
758const Foam::dictionary& Foam::dictionary::optionalSubDict
759(
760 const word& keyword
761) const
762{
763 const entry* entryPtr = lookupEntryPtr(keyword, false, true);
764
765 if (entryPtr)
766 {
767 return entryPtr->dict();
768 }
769 else
770 {
771 return *this;
772 }
773}
774
775
776Foam::wordList Foam::dictionary::toc() const

Callers 15

relaxationModel.CFile · 0.85
readFunction · 0.85
readFunction · 0.85
readFunction · 0.85
readFunction · 0.85
readDictFunction · 0.85
updateFunction · 0.85
SRFModel.CFile · 0.85

Calls 1

lookupEntryPtrFunction · 0.85

Tested by

no test coverage detected