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

Switching to debug mode?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2013, 16:31
Default Switching to debug mode?
  #1
NJG
Member
 
Nick Gutschow
Join Date: Jan 2013
Posts: 36
Rep Power: 13
NJG is on a distinguished road
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
NJG is offline   Reply With Quote

Old   February 17, 2013, 08:29
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   March 4, 2013, 09:25
Default
  #3
Member
 
X Meng
Join Date: Jun 2012
Location: Scotland
Posts: 89
Rep Power: 14
mxylondon is on a distinguished road
I have the same trouble, it is killing me.
mxylondon is offline   Reply With Quote

Old   March 4, 2013, 10:13
Default
  #4
Member
 
X Meng
Join Date: Jun 2012
Location: Scotland
Posts: 89
Rep Power: 14
mxylondon is on a distinguished road
I'm sorry, what means 'you have to edit root's "/root/.bashrc" file as well and add the sourcing/alias commands' please?
mxylondon is offline   Reply With Quote

Old   March 4, 2013, 19:08
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Xiangyin,

I'll answer you on your other thread: http://www.cfd-online.com/Forums/ope...debugging.html

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 06:41.