No description
This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
Dominik Christ aaf37ce513 FEATURE: Global control switches can now be used as command line parameters (see full commit description). Author: Martin Beaudoin (contribution by Hrvoje Jasak). Merge: Dominik Christ.
This is a major modification to the definition and handling of global control switches, namely the DebugSwitches, InfoSwitches, OptimisationSwitches, Tolerances and DimensionedConstants defined in the
Those values are now defined as objects, and are no longer defined using simple types like scalar or int.
It is now possible to override any of those control switches from the command-line, like this:
simpleFoam -help
Usage: simpleFoam [-DebugSwitches key1=val1,key2=val2,...] [-DimensionedConstants key1=val1,key2=val2,...] [-InfoSwitches key1=val1,key2=val2,...] [-OptimisationSwitches key1=val1,key2=val2,...] [-Tol
or
simpleFoam -DebugSwitches fvVectorMatrix=1,fvScalarMatrix=1
The 'banana' test is also implemented in order to dump the list of all the known control switches for a given application. One can use any bogus key name in order to get the list:
simpleFoam -DebugSwitches banana=1

The global controlDict file '$WM_PROJECT_DIR/etc/controlDict' is gone. One can still use a file to override a whole bunch of control switches by using the environment variable FOAM_GLOBAL_CONTROLDICT

One can also override case specific controlSwitches by using the case system/controlDict file.

Here is the order of precedence for the definition/overriding of the control switches, from lowest to highest:
- source code definitions from the various libraries/solvers
- file specified by the env. variable FOAM_GLOBAL_CONTROLDICT
- case's system/controlDict file
- command-line parameters

The application 'foamDebugSwitches' is gone. Instead, one can use the command-line option '-dumpControlSwitches' to print at the console the full list of control switches for a given application. The

At the source code level, when creating a control switch object, one can now add an optional description string in order to document its behaviour or purpose. That string description will be written a

Martin Beaudoin

Reorganisation of global controlDict by Hrvoje Jasak.
2015-05-15 10:21:39 +01:00
applications Pre-merge clean-up 2015-05-15 10:21:28 +01:00
bin Feature: filename update 2015-05-12 15:01:27 +01:00
doc controlSwitches: updating after code merge. Minor correction for DimensionedConstants sigmaSB. Adapting foamDebugSwitches 2015-05-02 09:57:47 -04:00
etc Merge commit 'bd947865f2881af1c52b458aa6b6b1b1844ce254' into nextRelease 2015-05-13 18:27:51 +01:00
extend-bazaar controlSwitches: updating after code merge. Minor correction for DimensionedConstants sigmaSB. Adapting foamDebugSwitches 2015-05-02 09:57:47 -04:00
Macros Renamed and cleaned foam-extend 2013-12-11 16:09:41 +00:00
src FEATURE: Global control switches can now be used as command line parameters (see full commit description). Author: Martin Beaudoin (contribution by Hrvoje Jasak). Merge: Dominik Christ. 2015-05-15 10:21:39 +01:00
testHarness bump version number 2014-06-01 18:23:43 +02:00
ThirdParty controlSwitches: updating after code merge. Minor correction for DimensionedConstants sigmaSB. Adapting foamDebugSwitches 2015-05-02 09:57:47 -04:00
tutorials Global controlDict pre-merge. 2015-05-14 20:31:22 +01:00
vagrantSandbox controlSwitches: updating after code merge. Minor correction for DimensionedConstants sigmaSB. Adapting foamDebugSwitches 2015-05-02 09:57:47 -04:00
wmake controlSwitches: updating after code merge. Minor correction for DimensionedConstants sigmaSB. Adapting foamDebugSwitches 2015-05-02 09:57:47 -04:00
.gitignore Fixes and a script to compile Foam in one go 2014-02-10 15:12:04 +01:00
.hgignore Fixes and a script to compile Foam in one go 2014-02-10 15:12:04 +01:00
Allclean Added Allclean and Allwmake.firstInstall 2013-09-23 16:08:50 +01:00
Allwmake Compilation update 2013-09-18 14:24:15 +01:00
Allwmake.firstInstall Added bazaar packages 2014-06-17 11:35:58 +02:00
Changelog.current Added file: Changelog.current 2014-07-31 15:53:49 +01:00
CMakeLists.txt bump version number 2014-06-01 18:23:43 +02:00
COPYING Changed v2 to v3 in remaining text files 2014-04-03 15:54:00 +01:00
CTestConfig.cmake Adjust CDash drop location 2014-06-01 20:24:27 +02:00
ExtendProjectPreamble Remove trailing whitespace systematically 2013-07-18 10:15:54 +02:00
ListOfContributors Pre-merge clean-up 2015-05-15 10:21:28 +01:00
ReleaseNotes BUGFIX: Fixed typos and formatting in ReleaseNotes file. Author: Hrvoje Jasak. Merge: Dominik Christ. 2014-08-01 15:38:12 +01:00
ReleaseNotes.html Modified version number for installation link at OpenFOAM Wiki 2014-08-01 11:37:41 +01:00
ReleaseNotes.txt Modified version number for installation link at OpenFOAM Wiki 2014-08-01 11:37:41 +01:00