How to locate this bug?
Hi everyone,
While I am trying to test my own solver on a new case, following error appears: Code:
Reading/calculating face flux field phi Code:
Info<< "Reading transportProperties\n" << endl; Many thanks. : ) |
Greetings wang219910611,
My advice is to make sure that you're debugging the correct lines. Change that piece of code to this: Code:
Info<< "Reading transportProperties\n" << endl; The other suggestion is to look at the dictionary files that are loaded by this piece of code. My guess is that there isn't only one file and that a bug might be present in any of those dictionary files. Beyond this: http://openfoamwiki.net/index.php/HowTo_debugging Best regards, Bruno |
2 Attachment(s)
Hi Bruno, sorry for the late reply. I turned back to learn more about gdb and c++ these days, trying to fix the bug.
I think I have managed to locate the bugs to my visThermo. This is a new thermo type I tried to set up by copying the way of psiThermo. Here is what I got from gdb: Code:
Program received signal SIGSEGV, Segmentation fault. Code:
virtual const volScalarField& Ybar() const; |
All times are GMT -4. The time now is 12:41. |