|
[Sponsors] |
June 19, 2009, 23:25 |
How to compile OF-1.5 in the debug mode?
|
#1 |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
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 |
|
July 6, 2009, 12:08 |
|
#2 |
New Member
Join Date: Jul 2009
Location: Wrentham, MA
Posts: 9
Rep Power: 17 |
vi ~/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc
# WM_COMPILE_OPTION = Opt | Debug | Prof : ${WM_COMPILE_OPTION:=Debug}; export WM_COMPILE_OPTION |
|
July 7, 2009, 06:22 |
|
#3 | |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
Quote:
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. |
||
July 7, 2009, 12:51 |
|
#4 |
New Member
Join Date: Jul 2009
Location: Wrentham, MA
Posts: 9
Rep Power: 17 |
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. |
|
July 8, 2009, 09:43 |
|
#5 |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
Thank you very much, sir . I will try it step by step.
|
|
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 |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07: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 04:09 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 13, 2001 00:19 |