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

Switching to debug mode?

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

Reply
 
LinkBack Thread Tools 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: 4
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: Debug version of OpenFOAM-1.6 - 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
 
Xiangyin Meng
Join Date: Jun 2012
Location: London
Posts: 69
Rep Power: 5
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
 
Xiangyin Meng
Join Date: Jun 2012
Location: London
Posts: 69
Rep Power: 5
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Xiangyin,

I'll answer you on your other thread: About debugging

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching on LES in 2D mode of fluent Josef Dubsky FLUENT 11 May 1, 2014 10:41
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 08:43
Compiling OpenFOAM 13 in Debug mode fra76 OpenFOAM Installation 2 April 14, 2006 03:09
Debug mode with UDF ?? Thierry FLUENT 0 November 4, 2002 05:31


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