|
[Sponsors] |
![]() |
![]() |
#1 |
Guest
Posts: n/a
|
Hi
For some reason my code keeps giving me a segmentation fault when there are too many arrays(70*70) calculations? Is it to do with memory? SHuo |
|
![]() |
![]() |
![]() |
#2 |
Senior Member
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 18 ![]() |
you can check the used memory with the command 'top', but my guess is, that you access your array out of its bounds
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 27 ![]() |
"flow_field(){variable[VertG][HoriG] = 0;}" will index outside 'variable'.
Use e.g. valgrind to pick up these errors. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Carrays | shuo | OpenFOAM Running, Solving & CFD | 0 | January 16, 2007 19:09 |