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

OpenFOAM + Code::Blocks

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2014, 06:49
Default OpenFOAM + Code::Blocks
  #1
New Member
 
Join Date: Oct 2014
Posts: 13
Rep Power: 11
koala is on a distinguished road
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
koala is offline   Reply With Quote

Old   October 17, 2014, 08:05
Default
  #2
New Member
 
Thierry Chappuis
Join Date: Oct 2014
Posts: 1
Rep Power: 0
tchappui is on a distinguished road
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
tchappui 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
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


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