CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Disabling and Enabling Solver Summary Outputs within code (http://www.cfd-online.com/Forums/openfoam-solving/59341-disabling-enabling-solver-summary-outputs-within-code.html)

adona058 November 1, 2007 09:45

I am working on a custom solve
 
I am working on a custom solver that requires I use the solve function a number of times during my solution. Unfortunately, This leads to a very large number of the summary lines being output to the terminal window, i.e.:

DICPCG: Solving for gamma, Initial residual = 0.000100881, Final residual = 1.64739e-12, No Iterations 1

Is there any way to temporarily disable the summary output to the terminal within the solver code, and then re-enable it following the section where the large number of equations are solved.

Thanks,

Adam

adona058 November 1, 2007 10:55

I see that under the lduMatrix
 
I see that under the lduMatrixTests.C file a debug switch is checked to see if a summary of the solution statistics should be printed to the screen.

Is there a way to either modify this switch during runtime, or define an lduMatrix that has a set debug switch = 0?.

hjasak November 1, 2007 11:17

Yes. In the code, you can do
 
Yes. In the code, you can do

lduMatrix::debug = 0;

or edit $HOME/.OpenFOAM-1.4.1-dev/controlDict

and set lduMatrix debug switch to zero.

Enjoy,

Hrv

adona058 November 1, 2007 12:00

Great. Thank you
 
Great. Thank you


All times are GMT -4. The time now is 23:27.