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

all rans and navierstokes test cases getting seg fault

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By jentink

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2013, 14:22
Default all rans and navierstokes test cases getting seg fault
  #1
Member
 
Tom Jentink
Join Date: Jan 2013
Posts: 61
Rep Power: 13
jentink is on a distinguished road
I recently installed version 2.0.8 and the 2.0.6 test cases.

All the test cases under rans and navierstokes die with a 'segmentation fault' before the first iteration.

These all worked fine with the base 2.0 install.

Any tips?
jentink is offline   Reply With Quote

Old   October 4, 2013, 15:40
Default
  #2
Member
 
Tom Jentink
Join Date: Jan 2013
Posts: 61
Rep Power: 13
jentink is on a distinguished road
2.0.7 works.
jentink is offline   Reply With Quote

Old   October 4, 2013, 17:16
Default
  #3
New Member
 
Austin Murch
Join Date: Jul 2012
Location: Duluth, MN, USA
Posts: 13
Rep Power: 14
austin.m is on a distinguished road
Hi Tom-

I've been running 2.0.8 for a day now with no issues. I've been running my own cases, but as a check I did try /TestCases/rans/naca0012 without any problem.

Can you post your config file and a screen dump?

Also, I've noticed that SU2 will seg fault if a restart is requested but file isn't correct or not available.
austin.m is offline   Reply With Quote

Old   October 6, 2013, 17:09
Default
  #4
Senior Member
 
Join Date: Nov 2010
Posts: 139
Rep Power: 16
taxalian is on a distinguished road
Send a message via Skype™ to taxalian
Hi,
I got similar problem with SU2 2.0.8, the code gives segmentation fault before starting with the iterations, see the attached picture for /TestCases/rans/naca0012.

The similar test cases ran fine in 2.0.7 but while writing the solution file at specified iterations, the code gives segmentation fault and stopped. Although all the test cases ran fine with the stable release of SU2.
Attached Images
File Type: jpg SU2_2.0.8_seg_fault.jpg (52.7 KB, 33 views)
taxalian is offline   Reply With Quote

Old   October 7, 2013, 10:10
Default
  #5
Member
 
Tom Jentink
Join Date: Jan 2013
Posts: 61
Rep Power: 13
jentink is on a distinguished road
Same thing here with 2.0.7.

I can get most test cases to run, but they won't restart from a restart file written by 2.0.7.

I'm running my own case now and it goes fine as long as I restart from original solution. I adapted my grid and now seg faulting when I try to read the adapted restart file.
jentink is offline   Reply With Quote

Old   October 7, 2013, 13:07
Default
  #6
Member
 
Tom Jentink
Join Date: Jan 2013
Posts: 61
Rep Power: 13
jentink is on a distinguished road
this is what gdb is showing when I compile 2.0.8 and run the rans/rae2822 test case:

Program received signal SIGSEGV, Segmentation fault.
0x082cc8b7 in CEulerSolver::Inviscid_Forces (this=0x94ce6f0, geometry=0x88f3f70,
config=0x88b03e0) at ../src/solver_direct_mean.cpp:3505
3505 Surface_CLift_Inv[iMarker_Monitoring] = 0.0;
jentink is offline   Reply With Quote

Old   October 7, 2013, 13:47
Default
  #7
Member
 
Tom Jentink
Join Date: Jan 2013
Posts: 61
Rep Power: 13
jentink is on a distinguished road
if i turn off monitoring in the same test case, it seg faults further down. Coord[0], Coord[1], and Coord[2] are defined. Origin[] is not.

Program received signal SIGSEGV, Segmentation fault.
0x082e2cd2 in CNSSolver::Viscous_Forces (this=0x94ce6b8, geometry=0x88f3f40, config=0x88b03e0)at ../src/solver_direct_mean.cpp:7743
7743
MomentDist[iDim] = Coord[iDim] - Origin[iDim];
jentink is offline   Reply With Quote

Old   October 7, 2013, 14:23
Default
  #8
Member
 
Tom Jentink
Join Date: Jan 2013
Posts: 61
Rep Power: 13
jentink is on a distinguished road
if i hard code the moment reference length to 1.0, it works.

seg fault happens anytime you try to reference Origin[idim].

this happens whether i use the old moment reference type in the input or the new with separate x, y, and z inputs.
jentink is offline   Reply With Quote

Old   October 7, 2013, 22:04
Default
  #9
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14
economon is on a distinguished road
Hi,

As they are developer releases, specific details of the restart files, configuration options, and solver defaults can change between minor releases (such as V2.0.7 -> V2.0.8), and this can sometimes cause issues. It is best to use the matching test cases/config files for your current version of SU2 (there is a set of test cases specifically for V2.0.8 available for download on su2.stanford.edu).

Note that we keep the configuration files for the test cases found in SU2/TestCases/ in the repository up to date for the current working version of the code. Does trying with this version of the config files resolve the issue? If not, can you share more details about your specific cases (configuration files, etc.)?

Tom
economon is offline   Reply With Quote

Old   October 8, 2013, 11:26
Default
  #10
Member
 
Tom Jentink
Join Date: Jan 2013
Posts: 61
Rep Power: 13
jentink is on a distinguished road
The specific issues experienced for the rans/rae2822 test case (my posts above concerning the seg fault location) were run with a git clone of the 2.0.8 release. And the configuration file from that release. No changes.
jentink is offline   Reply With Quote

Old   October 8, 2013, 14:34
Default
  #11
Senior Member
 
Join Date: Nov 2010
Posts: 139
Rep Power: 16
taxalian is on a distinguished road
Send a message via Skype™ to taxalian
Hi Tom,
I used the concerned configuration files for the related test cases compatible with the SU2 release 2.0.7 & 2.0.8. I don't think so, that this is really causing the code to cause segmentation fault.
taxalian is offline   Reply With Quote

Old   October 8, 2013, 15:43
Default
  #12
Member
 
Tom Jentink
Join Date: Jan 2013
Posts: 61
Rep Power: 13
jentink is on a distinguished road
I cleaned out all my versions and started over with a clean compile using 2.0.8.

The test cases that were seg faulting before are now working.... Sorry about that.

I think I was just doing too many things at once.
taxalian likes this.
jentink is offline   Reply With Quote

Old   October 8, 2013, 15:59
Default
  #13
New Member
 
Austin Murch
Join Date: Jul 2012
Location: Duluth, MN, USA
Posts: 13
Rep Power: 14
austin.m is on a distinguished road
Don't feel too bad, I had that happen to me with 2.0.6... it is frustrating! In general though I've found SU2 to be getting better with each developer release, though its challenging to keep up since the changes are not documented in the tutorials yet.

Austin
austin.m is offline   Reply With Quote

Old   October 8, 2013, 20:29
Default
  #14
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14
economon is on a distinguished road
Glad to hear that things are working now... I completely understand that things can be a bit frustrating with the developer releases, but on the positive side, it underscores the fast pace at which improvements and upgrades are being introduced into the code.

We agree that the documentation needs to be updated, and this will of course be done alongside a very important major release of SU2 V3.0 in January.

In the meantime, don't hesitate to contact us if you see weird behavior, and we'll do our best to update users of important changes in the developer releases. Thanks for working with SU2 - your feedback truly does help improve the code.

Cheers,
Tom
economon is offline   Reply With Quote

Old   October 9, 2013, 15:07
Default
  #15
Senior Member
 
Join Date: Nov 2010
Posts: 139
Rep Power: 16
taxalian is on a distinguished road
Send a message via Skype™ to taxalian
Hi,
As jentink mentioned, after cleaning up all the SU2 versions and installing a fresh SU2 2.0.8 distribution resolves all the issues.
taxalian 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



All times are GMT -4. The time now is 14:30.