|
[Sponsors] |
February 16, 2013, 16:31 |
Switching to debug mode?
|
#1 |
Member
Nick Gutschow
Join Date: Jan 2013
Posts: 36
Rep Power: 13 |
Hello Folks,
I wish to switch to debug mode so I can figure out what is going on with a new solver I wrote and am running. In order to do this I went into my openfoam211/etc/bashrc file and changed the following: "export WM_COMPILE_OPTION=Debug". I then ran ./Allwmake to try and recompile, which failed. I have two questions: 1) Do I need to make any other changes to activate the debug version? 2) If not by running ./Allwmake in the /opt/openfoam211 folder, how do I successfully recompile once I have made my debug changes? -NG |
|
February 17, 2013, 08:29 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Nick,
My advice is that you undo the changes you've done in "/opt/openfoam211" and instead build OpenFOAM from source code on your home folder, instead of building in "/opt". This is to avoid accidental deletions while running things as root. Additionally, there is an old post I wrote explaining how one can have the "Opt" version and the "Debug" version: http://www.cfd-online.com/Forums/ope...tml#post257204 - it's a bit dated, but it should still work for 2.1.1. If by any chance you want to be stubborn and continue only working with the code in "/opt/openfoam211", then keep in mind that "root" is also a user, which means that you have to edit root's "/root/.bashrc" file as well and add the sourcing/alias commands, for Allwmake to work as intended. Best regards, Bruno
__________________
|
|
March 4, 2013, 09:25 |
|
#3 |
Member
X Meng
Join Date: Jun 2012
Location: Scotland
Posts: 89
Rep Power: 14 |
I have the same trouble, it is killing me.
|
|
March 4, 2013, 10:13 |
|
#4 |
Member
X Meng
Join Date: Jun 2012
Location: Scotland
Posts: 89
Rep Power: 14 |
I'm sorry, what means 'you have to edit root's "/root/.bashrc" file as well and add the sourcing/alias commands' please?
|
|
March 4, 2013, 19:08 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Xiangyin,
I'll answer you on your other thread: http://www.cfd-online.com/Forums/ope...debugging.html Best regards, Bruno
__________________
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Debug mode with UDF ?? | Thierry | FLUENT | 1 | October 9, 2018 22:57 |
Switching on LES in 2D mode of fluent | Josef Dubsky | FLUENT | 27 | March 16, 2016 14:49 |
Compiling in debug mode | Marc10 | OpenFOAM Programming & Development | 1 | February 17, 2010 12:13 |
How to compile OF-1.5 in the debug mode? | sandy | OpenFOAM Running, Solving & CFD | 4 | July 8, 2009 09:43 |
Compiling OpenFOAM 13 in Debug mode | fra76 | OpenFOAM Installation | 2 | April 14, 2006 04:09 |