CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

SU2 debug mode.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By aniketaranake

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2014, 18:29
Default SU2 debug mode.
  #1
New Member
 
Nitin
Join Date: Feb 2014
Posts: 9
Rep Power: 12
neetin is on a distinguished road
Is there an (debug) option to get more information when SU2 quits with an error, say segmentation fault?
neetin is offline   Reply With Quote

Old   May 15, 2014, 16:31
Default
  #2
New Member
 
Join Date: Dec 2011
Posts: 22
Rep Power: 15
aniketaranake is on a distinguished road
Quote:
Originally Posted by neetin View Post
Is there an (debug) option to get more information when SU2 quits with an error, say segmentation fault?
What I have done in this past is to set the environment variable CXXFLAGS to use gcc's debug flags, i.e.
Code:
$ export CXXFLAGS=-g
$ ./configure
This way, the debug symbols will be compiled into the binaries. You can then run the code inside a debugging environment such as gdb.

Several IDEs such as Xcode and Eclipse also include features to help debug.

I hope this helps,
Aniket
kmandar likes this.
aniketaranake is offline   Reply With Quote

Old   May 16, 2014, 15:30
Default
  #3
New Member
 
Nitin
Join Date: Feb 2014
Posts: 9
Rep Power: 12
neetin is on a distinguished road
Thanks, Aniket. That helps.
neetin is offline   Reply With Quote

Old   June 3, 2014, 13:56
Default
  #4
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 14
aylalisa is on a distinguished road
Hello Aniket,

could you explain me how I can recompile gcc? I work with OpenSuse 13.1.

Aylalisa
aylalisa is offline   Reply With Quote

Old   June 5, 2014, 15:48
Default
  #5
Member
 
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15
rktchip is on a distinguished road
Aylalisa,
Check out this guide in case it helps -
http://adl-public.stanford.edu/docs/...on+from+Source
rktchip 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
Debug mode with UDF ?? Thierry FLUENT 1 October 9, 2018 22:57
index out of range when accessing boundaryField in debug mode sr_tenedor OpenFOAM Bugs 5 April 14, 2013 12:17
Switching to debug mode? NJG OpenFOAM Installation 4 March 4, 2013 19:08
Compiling in debug mode Marc10 OpenFOAM Programming & Development 1 February 17, 2010 12:13
How to compile OF-1.5 in the debug mode? sandy OpenFOAM Running, Solving & CFD 4 July 8, 2009 09:43


All times are GMT -4. The time now is 19:13.