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

OpenFoam & Eclipse

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2012, 13:02
Default OpenFoam & Eclipse
  #1
Member
 
Kasra
Join Date: Jun 2010
Location: USA
Posts: 44
Rep Power: 16
gary7 is on a distinguished road
Hi all,

I just followed the openfoamwiki tutorial on using openfoam with eclipse, thanks to great explanation of A. Mahrla. I brought icoFoam into eclipse and could run a cavity case in there. But for debugging when I set everything up as it's described in the openfoamwiki I get the
Code:
 No source available for "main() at 0x417f40"
This how I made the projects in eclipse based on the tutorial:
1. Made a project for icoFoam from its source directory under
.../solvers/icompressible/icoFoam
2. Used "lnInclude" under .../src/OpenFoam/lnInclude and .../src/finiteVolume/lnInclude for header files
3. Made another project for my case which is .../incompressible/icoFoam/cavity

I did compile the openfoam with WM_COMPILE_OPTION = Debug in the bashrc and I executed Allwmake from openfoam base directory .../openfoam210/ to compile the whole package again with Debug mode which took 3 hours to compile on my machine.

Any idea where the problem lies?

Cheers...
gary7 is offline   Reply With Quote

Old   March 18, 2012, 18:45
Default
  #2
Member
 
Kasra
Join Date: Jun 2010
Location: USA
Posts: 44
Rep Power: 16
gary7 is on a distinguished road
Has anyone tried OpenFoam in eclipse? Can you address my problem I'd appreciate it.
gary7 is offline   Reply With Quote

Old   March 19, 2012, 03:57
Default
  #3
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Are you sure icoFoam has been recompiled with the debug flag, and even more important, are you sure Eclipse is executing the correct executable? The debug executable are in a different folder than the regular ones.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   March 19, 2012, 12:22
Default
  #4
Member
 
Kasra
Join Date: Jun 2010
Location: USA
Posts: 44
Rep Power: 16
gary7 is on a distinguished road
Thanks Anton, well I didn't know that debug version are in a different place! because all I did was to set WM_COMPILE_OPTION=Debug in the $WM_PROJECT_DIR/etc/bashrc
and I ran Allwmake from $WM_PROJECT_DIR/applications/ which recompiled and built the code again which took a long time, is that the right thing to do? or can I just recompile the solver that I want in debug mode? . I looked for executables in the same place as before which is $WM_PROJECT_DIR//platforms/linux64GccDPOpt/bin/ I checked the files date and they were all made new so I assumed they are in the same place as before...

Cheers
gary7 is offline   Reply With Quote

Old   March 19, 2012, 12:29
Default
  #5
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
The debug builds will end up in linux64GccDPDebug. You could just compile the solver in debug mode by adding -g to the Make/options file of your solver. You won't be able to "see" where you are once you step into the libraries though. The thorough option is to recompile everything with the debug flag. Did you re-source the bashrc after changing it?

- Anton
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Reply


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
Eclipse for OpenFOAM AMahrla OpenFOAM Programming & Development 109 October 8, 2017 17:20
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55
OpenFOAM + Eclipse Svensson OpenFOAM 2 April 10, 2011 12:02
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 07:25
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 06:56


All times are GMT -4. The time now is 10:31.