OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

Foam::debug Namespace Reference

Namespace for handling debugging switches. More...


Functions

dictionarycontrolDict ()
 The central control dictionary.
dictionarydebugSwitches ()
 The DebugSwitches sub-dictionary in the central controlDict.
dictionaryinfoSwitches ()
 The InfoSwitches sub-dictionary in the central controlDict.
dictionaryoptimisationSwitches ()
 The OptimisationSwitches sub-dictionary in the central controlDict.
int debugSwitch (const char *name, const int defaultValue=0)
 Lookup debug switch or add default value.
int infoSwitch (const char *name, const int defaultValue=0)
 Lookup info switch or add default value.
int optimisationSwitch (const char *name, const int defaultValue=0)
 Lookup optimisation switch or add default value.
dictionaryswitchSet (const char *subDictName, dictionary *&subDictPtr)
 Internal function to lookup a sub-dictionary from controlDict.

Detailed Description

Namespace for handling debugging switches.

Source files


Function Documentation

Foam::dictionary & controlDict (  ) 

The central control dictionary.

Located in ~/.OpenFOAM/VERSION or $WM_PROJECT_DIR/etc

See also:
Foam::findEtcFile()

Definition at line 67 of file debug.C.

Foam::dictionary & debugSwitches (  ) 

The DebugSwitches sub-dictionary in the central controlDict.

Definition at line 111 of file debug.C.

Referenced by infoSwitch().

Here is the caller graph for this function:

Foam::dictionary & infoSwitches (  ) 

The InfoSwitches sub-dictionary in the central controlDict.

Definition at line 117 of file debug.C.

References switchSet().

Referenced by optimisationSwitch().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::dictionary & optimisationSwitches (  ) 

The OptimisationSwitches sub-dictionary in the central controlDict.

Definition at line 123 of file debug.C.

References switchSet().

Here is the call graph for this function:

int debugSwitch ( const char *  name,
const int  defaultValue = 0 
)

Lookup debug switch or add default value.

Definition at line 129 of file debug.C.

References switchSet().

Here is the call graph for this function:

int infoSwitch ( const char *  name,
const int  defaultValue = 0 
)

Lookup info switch or add default value.

Definition at line 138 of file debug.C.

References debugSwitches(), and dictionary::lookupOrAddDefault().

Here is the call graph for this function:

int optimisationSwitch ( const char *  name,
const int  defaultValue = 0 
)

Lookup optimisation switch or add default value.

Definition at line 147 of file debug.C.

References infoSwitches(), and dictionary::lookupOrAddDefault().

Here is the call graph for this function:

Foam::dictionary & switchSet ( const char *  subDictName,
dictionary *&  subDictPtr 
)

Internal function to lookup a sub-dictionary from controlDict.

Definition at line 82 of file debug.C.

Referenced by debugSwitch(), Foam::dimensionedConstants(), infoSwitches(), and optimisationSwitches().

Here is the caller graph for this function:

Copyright © 2000-2009 OpenCFD Ltd