Skip to content

BUG: argList::noBanner silently suppresses foamDictionary -includes output

Summary

foamDictionary -includes system/controlDict does not return #include headers.

The reason is that even though ::Foam::infoDetailLevel is initialised to 1, it is assigned to zero in argList::noBanner(). This converts DetailInfo macro to a no-op as is executed in functionEntries::includeEntry::execute(), therefore no call is made to Info.

Steps to reproduce

cd $FOAM_TUTORIALS/incompressible/simpleFoam/motorBike

foamDictionary -includes system/controlDict

which will return nothing unlike OFv1712 that returns the #include headers.

Environment information

  • OpenFOAM version : dev
  • Operating system : osuse
  • Compiler : gcc