|
[Sponsors] |
lduMatrix::debug does not work anymore in 2.2.1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 17, 2013, 09:12 |
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 |
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 |
|
April 8, 2014, 08:43 |
|
#2 |
Member
Anja Miehe
Join Date: Dec 2009
Location: Freiberg / Germany
Posts: 48
Rep Power: 16 |
Hello there,
I solved my problem. They changed only the name of it. Instead of Code:
lduMatrix::debug Code:
solverPerformance::debug Code:
solverPerformance::debug=0; Code:
solverPerformance::debug=1; |
|
January 17, 2018, 01:30 |
silence output to terminal
|
#3 |
New Member
Rajeev Sri Sai
Join Date: Jan 2018
Posts: 1
Rep Power: 0 |
Hi, I am pretty new to openfoam. Can you please guide be about where to change "solverPerformance::debug=0;"?
Thank you. |
|
October 15, 2018, 11:46 |
|
#4 |
Member
Victor Koppejan
Join Date: May 2015
Posts: 40
Rep Power: 11 |
So...
I just spent half an hour figuring this out. There are to solver performance classes: Code:
solverPerformance Code:
SolverPerformance The latter is templated, and allows you to set Code:
SolverPerformance<scalar>::debug=0 Code:
SolverPerformance<vector>::debug=0 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 Last edited by vkoppejan; October 15, 2018 at 11:50. Reason: fixed typo |
|
Tags |
ldumatrix::debug |
|
|
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 |