versatility improvement: #includeIfPresent dictionary directive

- similar to the #include directive, but does not generate an error if the
  file does not exist.

Note: opted for an explicit naming #includeIfPresent rather than #cinclude
This commit is contained in:
Mark Olesen
2009-07-21 08:44:25 +02:00
parent ea14d8f8b4
commit 4f6f570d6d
7 changed files with 215 additions and 4 deletions

View File

@ -78,6 +78,7 @@ boundaryField
// NB: the inputMode has a global scope
#inputMode merge
#include "testDict2"
#includeIfPresent "SomeUnknownFile"
foo
{