ENH: support "one-shot" changes to the dictionary inputMode (issue #429)
- Instead of relying on #inputMode to effect a global change it is now possible (and recommended) to a temporary change in the inputMode for the following entry. #default : provide default value if entry is not already defined #overwrite : silently remove a previously existing entry #warn : warn about duplicate entries #error : error if any duplicate entries occur #merge : merge sub-dictionaries when possible (the default mode) This is generally less cumbersome than the switching the global inputMode. For example to provide a set of fallback values. #includeIfPresent "user-files" ... #default value uniform 10; vs. #includeIfPresent "user-files" #inputMode protect ... value uniform 10; #inputMode merge // _Assuming_ we actually had this before These directives can also be used to suppress the normal dictionary merge semantics: #overwrite dict { entry val; ... }
Showing
- applications/test/dictionary/testDict 10 additions, 9 deletionsapplications/test/dictionary/testDict
- etc/caseDicts/foamyHexMeshDict 0 additions, 2 deletionsetc/caseDicts/foamyHexMeshDict
- src/OpenFOAM/db/dictionary/functionEntries/inputMode/inputMode.C 95 additions, 0 deletions...nFOAM/db/dictionary/functionEntries/inputMode/inputMode.C
- src/OpenFOAM/db/dictionary/functionEntries/inputMode/inputMode.H 80 additions, 0 deletions...nFOAM/db/dictionary/functionEntries/inputMode/inputMode.H
- tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/system/solverControls 0 additions, 2 deletions...tiRegionFoam/windshieldCondensation/system/solverControls
- tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/system/solverControls.0 0 additions, 2 deletions...RegionFoam/windshieldCondensation/system/solverControls.0
- tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/system/solverControls.20 0 additions, 2 deletions...egionFoam/windshieldCondensation/system/solverControls.20
- tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/system/solverControls.5 0 additions, 2 deletions...RegionFoam/windshieldCondensation/system/solverControls.5
- tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/system/solverControls.60 0 additions, 2 deletions...egionFoam/windshieldCondensation/system/solverControls.60
- tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/include/initialConditions 0 additions, 2 deletions...ntMotion/building/steady/0.orig/include/initialConditions
- tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/0.orig/include/initialConditions 0 additions, 1 deletion...er/cylinderAndBackground/0.orig/include/initialConditions
- tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/0.orig/include/initialConditions 0 additions, 1 deletion...oFoil/background_overset/0.orig/include/initialConditions
Please register or sign in to comment