CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to compile OF-1.5 in the debug mode?

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

Like Tree1Likes
  • 1 Post By karlvirgil

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2009, 22:25
Default How to compile OF-1.5 in the debug mode?
  #1
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Hi OpenFOAMers,

Who know how to compile OF-1.5 in the debug mode?

In OF-1.3, If I want a debug version of OpenFOAM, I just need to change the lines in $HOME/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc from

=============================
export WM_COMPILE_OPTION=Opt
# export WM_COMPILE_OPTION=Debug
# export WM_COMPILE_OPTION=Prof

to

# export WM_COMPILE_OPTION=Opt
exportWM_COMPILE_OPTION=Debug
# export WM_COMPILE_OPTION=Prof


=========================

However, how can still make it work in OF-1.5? In addition, what is its step by step procedures to debug the original codes under the debug version of OF-1.5?

Thanks
Sandy
sandy.lee37@gmail.com
sandy is offline   Reply With Quote

Old   July 6, 2009, 11:08
Default
  #2
New Member
 
karlvirgil's Avatar
 
Join Date: Jul 2009
Location: Wrentham, MA
Posts: 9
Rep Power: 16
karlvirgil is on a distinguished road
vi ~/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc

# WM_COMPILE_OPTION = Opt | Debug | Prof
: ${WM_COMPILE_OPTION:=Debug}; export WM_COMPILE_OPTION
karlvirgil is offline   Reply With Quote

Old   July 7, 2009, 05:22
Default
  #3
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Quote:
Originally Posted by karlvirgil View Post
vi ~/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc

# WM_COMPILE_OPTION = Opt | Debug | Prof
: ${WM_COMPILE_OPTION:=Debug}; export WM_COMPILE_OPTION
===========================

Hi sir, thank you a lot for your note. However, I remembered that I ever tried it but not work. Could you further tell me, after finish above setting, what is next step I should do step by step? Please don't mind, I just begin to study them.
sandy is offline   Reply With Quote

Old   July 7, 2009, 11:51
Default
  #4
New Member
 
karlvirgil's Avatar
 
Join Date: Jul 2009
Location: Wrentham, MA
Posts: 9
Rep Power: 16
karlvirgil is on a distinguished road
Sandy,

Edit the bashrc file, then log out and log back in in order to reset the $WM_COMPILE_OPTION environment variable. Then navigate to the $FOAM_INST_DIR/OpenFOAM-1.5.x/ and run ./Allwmake
This will compile debug versions of the libraries and place them in the lib/linux64GccDPDebug/ directory.
chen wang likes this.
karlvirgil is offline   Reply With Quote

Old   July 8, 2009, 08:43
Default
  #5
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Thank you very much, sir . I will try it step by step.
sandy 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 21:57
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51
Compiling OpenFOAM 13 in Debug mode fra76 OpenFOAM Installation 2 April 14, 2006 03:09
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 14:47.