CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > 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

Reply
 
LinkBack Thread Tools 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: 207
Rep Power: 9
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: 8
Rep Power: 8
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: 207
Rep Power: 9
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: 8
Rep Power: 8
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.
karlvirgil is offline   Reply With Quote

Old   July 8, 2009, 08:43
Default
  #5
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 207
Rep Power: 9
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
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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 06:05
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51
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
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


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