|
[Sponsors] |
October 17, 2014, 06:49 |
OpenFOAM + Code::Blocks
|
#1 |
New Member
Join Date: Oct 2014
Posts: 13
Rep Power: 11 |
Hi,
I want to study the source code of OpenFOAM (2.3.0) in Code::Blocks (13.12). For example the source file "scalarTransportFoam.C" (from applications/solvers/basic/scalarTransportFoam) contains several includes which are in many different folders. If i right click an #include entry (#include "fvCFD.H") there pops up "Open #include file: ...." but it won't find the file "fvCFD.H" because he doesn't know where to find it. I read the article on the OpenFOAM wiki about OpenFOAM and Eclipse: http://openfoamwiki.net/index.php/Ho...M_with_Eclipse but the problem is that the author already knew exactly where the include files are and just set the right directory (bold in the picture) in the last step of step 5 before step 6. So my question is, is there a way to tell Code::Blocks that he must search in the whole "src" folder for the right include files without telling the exact directory like the author of the article in the wiki did or just tell him how he can find the right include file? Thanks in advance |
|
October 17, 2014, 08:05 |
|
#2 |
New Member
Thierry Chappuis
Join Date: Oct 2014
Posts: 1
Rep Power: 0 |
Dear koala,
Choosing the right header file depends on the pre-processor parameters. As far as I can remember Code::Blocks, it is not well suited to detect such parameters and therefore not well suited for "C-Code reading" and to navigate easily in a complex c-source tree. I personnally use Source Navigator (http://sourcenav.sourceforge.net/) or cscope in vim for such a task. I'm however interested in the answers that will be gathered in this thread if a solution exists with Code::Blocks. Kind regards Thierry |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
OpenFOAM Foundation Releases OpenFOAM v2.3.0 | opencfd | OpenFOAM Announcements from OpenFOAM Foundation | 3 | December 23, 2014 04:43 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
OpenFOAM Training and Workshop | Hrvoje Jasak | Main CFD Forum | 0 | October 7, 2005 08:14 |