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

OpenFoam & Eclipse

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 16, 2012, 13:02
Default OpenFoam & Eclipse
  #1
Member
 
Kasra
Join Date: Jun 2010
Location: USA
Posts: 42
Rep Power: 7
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: 42
Rep Power: 7
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: Delft, Netherlands
Posts: 919
Rep Power: 17
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.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   March 19, 2012, 12:22
Default
  #4
Member
 
Kasra
Join Date: Jun 2010
Location: USA
Posts: 42
Rep Power: 7
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: Delft, Netherlands
Posts: 919
Rep Power: 17
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.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse for OpenFOAM AMahrla OpenFOAM Programming & Development 108 February 27, 2015 09:51
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
OpenFOAM + Eclipse Svensson OpenFOAM 2 April 10, 2011 11: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 06:25
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56


All times are GMT -4. The time now is 01:36.