CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   static int debug (https://www.cfd-online.com/Forums/openfoam-programming-development/127560-static-int-debug.html)

maybee December 14, 2013 06:13

static int debug
 
hi,bool Foam:: pimpleControl::loop()

inter alia in method "bool Foam:: pimpleControl::loop()" can be found a variable called "debug" within the first if condition:

Code:

bool Foam::pimpleControl::loop()      //Implements solutionControl.
174*{
175* read();                             
176*                                             
177* corr_++;  //label corr_ protected, Current corrector loop index. //Class solutionControl
178*
179* if (debug)  //static int debug, Debug Switch , fvSchemes ?
180* {
181* Info<< algorithmName_ << " loop: corr = " << corr_ << endl;
182* }
.
.
.

"static int debug" (for example in class fvSchemes) is defined with :

Quote:

Debug switch.
So, what is the meaning behind "debug"? Since it is really often used in if conditions of solvers it, I need to know it.

greetings
maybee


All times are GMT -4. The time now is 06:29.