|
[Sponsors] |
[OpenFOAM.org] Compiling OpenFoam 4 for debugging |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 2, 2016, 18:06 |
Compiling OpenFoam 4 for debugging
|
#1 |
New Member
larmes
Join Date: Aug 2016
Posts: 26
Rep Power: 10 |
How do I compile openFoam 4 after changing it from opt to debug mode in the bashrc file?
I can change the file successfully and I compile the file and then run Allmake in the source files, then I type which IcoFoam into the terminal but nothing shows up, but when it was it opt mode some other path showed up. |
|
August 4, 2016, 11:45 |
|
#2 |
Senior Member
Join Date: Sep 2010
Posts: 226
Rep Power: 17 |
||
August 8, 2016, 19:34 |
|
#3 |
New Member
larmes
Join Date: Aug 2016
Posts: 26
Rep Power: 10 |
I've tried option two bc it seems like the best choice for my situation but I am unable to compile openFoam after I edited the file.
I ran ./Allmake (As the instructions say) Then went into the case causing the problems and the solver isn't even recognized as a command anymore. |
|
September 11, 2016, 14:07 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer @yeya: I have no idea if you have solved this problem or not. If not, then:
__________________
|
|
October 5, 2016, 06:43 |
|
#5 |
New Member
larmes
Join Date: Aug 2016
Posts: 26
Rep Power: 10 |
hi, no the problem still presists.
i installed with Ubuntu. |
|
October 6, 2016, 16:44 |
|
#7 |
New Member
larmes
Join Date: Aug 2016
Posts: 26
Rep Power: 10 |
hi, its the one for ubuntu as described on the openFoam website, here is the link:
http://openfoam.org/download/4-0-ubuntu/ |
|
November 20, 2016, 15:31 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
Nonetheless, if you haven't solved the problem yet, I strongly suggest that you following the instructions on how to build OpenFOAM from source code, as explained here: http://openfoam.org/download/4-1-source/ That way you don't damage the installation you have in "/opt". If you then still have problems building OpenFOAM in debug mode, then please use the following command for running Allwmake: Code:
./Allwmake > log.make 2>&1 Code:
gzip < log.make > log.make.gz
__________________
|
||
November 28, 2017, 16:01 |
|
#9 |
Member
behzad Ghasemi
Join Date: Sep 2013
Location: Iran
Posts: 56
Rep Power: 13 |
Hi,
I changed opt to Debug mode and then successfully recompiled the source code. in platforms and Make folders new folder named linux64Gcc47DPDebug is created for OF main solvers and applications. But when i try to compile my custom solver it compiles as linux64Gcc47DPOpt. So when i want to run my solver in debug mode OF does not recognize it. My OF version is 2.1.1. How can i fix this issue? Regards, Behzad |
|
December 30, 2017, 12:32 |
|
#10 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
__________________
|
||
January 3, 2018, 05:51 |
|
#11 | |
Member
behzad Ghasemi
Join Date: Sep 2013
Location: Iran
Posts: 56
Rep Power: 13 |
Quote:
I solved the problem before. It was my mistake that i didn't open new terminal after changing bashrc. My environmental variables are okey. Regards, |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 16:54 |
OpenFOAM 4.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 2 | October 6, 2017 06:40 |
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 21, 2016 12:50 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix | mbeaudoin | OpenFOAM Installation | 2 | April 28, 2006 09:54 |