CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

lduMatrix::debug does not work anymore in 2.2.1

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By vkoppejan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 17, 2013, 09:12
Default lduMatrix::debug does not work anymore in 2.2.1
  #1
Member
 
Anja Miehe
Join Date: Dec 2009
Location: Freiberg / Germany
Posts: 48
Rep Power: 16
AnjaMiehe is on a distinguished road
Hello there,

I used lduMatrix::debug = 0 so silence the output for subiterations and set it to lduMatrix::debug = 1 afterwards.

In OpenFOAM 2.1., everything works fine. In 2.2.0 or 2.2.1 the statement lduMatrix::debug = 0 does not silence the output of the solver anymore. Searching through the forums, Doxygen and the code, I could not find out what did change and adopt the line accordingly.

Does anyone know, what is the matter?
Thank you very much in advance,
Regards, Anja
AnjaMiehe is offline   Reply With Quote

Old   April 8, 2014, 08:43
Default
  #2
Member
 
Anja Miehe
Join Date: Dec 2009
Location: Freiberg / Germany
Posts: 48
Rep Power: 16
AnjaMiehe is on a distinguished road
Hello there,

I solved my problem. They changed only the name of it. Instead of
Code:
lduMatrix::debug
it is now
Code:
solverPerformance::debug
In order to silence a solver, just set
Code:
solverPerformance::debug=0;
and with
Code:
solverPerformance::debug=1;
you enable again the output afterwards.
AnjaMiehe is offline   Reply With Quote

Old   January 17, 2018, 01:30
Question silence output to terminal
  #3
New Member
 
Rajeev Sri Sai
Join Date: Jan 2018
Posts: 1
Rep Power: 0
rajeevsrisai is on a distinguished road
Hi, I am pretty new to openfoam. Can you please guide be about where to change "solverPerformance::debug=0;"?
Thank you.
rajeevsrisai is offline   Reply With Quote

Old   October 15, 2018, 11:46
Default
  #4
Member
 
Victor Koppejan
Join Date: May 2015
Posts: 40
Rep Power: 11
vkoppejan is on a distinguished road
So...

I just spent half an hour figuring this out.

There are to solver performance classes:

Code:
solverPerformance
and

Code:
SolverPerformance
Note the first capital S.

The latter is templated, and allows you to set

Code:
SolverPerformance<scalar>::debug=0
or

Code:
SolverPerformance<vector>::debug=0
and so forth for all other template options.

This finally silenced all my solvers. One more tip, I use them as follows:

Code:
#ifndef FULLDEBUG
   SolverPerformance<vector>::debug = 0;
#endif
Code:
<awesome code wiht to much output>
Code:
#ifndef FULLDEBUG
   SolverPerformance<vector>::debug = 1;
#endif

This gives me solver output in debug builds but not in opt and prof builds. Yes this is uaf and not c++onic but it works. I'm very happy to get tips on how to implement this nices
t.teschner and TommyGun like this.

Last edited by vkoppejan; October 15, 2018 at 11:50. Reason: fixed typo
vkoppejan is offline   Reply With Quote

Reply

Tags
ldumatrix::debug


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 2.2.1 on OpenSUSE 10.3 on Cluster? CFDnewbie147 OpenFOAM Installation 12 September 23, 2013 14:04
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
cfx+Fortran cannot work with 2 CPUs on windows PC lee CFX 1 May 8, 2006 11:36
Help! Subroutine can't work! Miko CFX 6 June 4, 2003 22:04
Work Space Allocation ? Farid CFX 1 September 5, 2002 14:03


All times are GMT -4. The time now is 09:07.