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

Segmentation fault (core dumped)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2017, 19:57
Default Segmentation fault (core dumped)
  #1
Member
 
Sugajen
Join Date: Jan 2012
Location: Tempe, USA
Posts: 52
Rep Power: 14
Sugajen is on a distinguished road
Hi Foamers!

When I initialize a 3D array and run it for n=128, it crashes with
Code:
Segmentation fault (core dumped)
The code is part of the solver and does not throw an error during its compilation. But when running on a case, the error pops up. Also for smaller values of n (64,32, 16) it works fine. What could be the problem?
Code:
n= 128;
double array[n+2][n+2][n+2];
Thanks,
Sugajen
Sugajen is offline   Reply With Quote

Old   August 2, 2017, 13:06
Default
  #2
Member
 
Hooman
Join Date: Apr 2011
Posts: 35
Rep Power: 15
hooman.4028 is on a distinguished road
Hi Sugajen,

Have you been able to find a solution yet?


Sent from my iPhone using CFD Online Forum mobile app
hooman.4028 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
[OpenFOAM] paraview parafoam segmentation fault (core dumped) RicardoLB ParaView 3 April 28, 2020 21:07
Segmentation fault (core dumped) NH1994 OpenFOAM Pre-Processing 0 January 9, 2015 04:20
Segmentation fault (core dumped) NH1994 OpenFOAM Programming & Development 0 January 9, 2015 02:24
Segmentation fault (core dumped) in Axial_Rotor_MRF sam.ho OpenFOAM Running, Solving & CFD 0 March 17, 2014 02:42
Segmentation fault (core dumped) when changing pressure BC jptorol OpenFOAM Running, Solving & CFD 0 September 25, 2013 19:05


All times are GMT -4. The time now is 17:09.