|
[Sponsors] |
January 16, 2007, 20:03 |
Hi
For some reason my code
|
#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 |
|
January 17, 2007, 07:15 |
you can check the used memory
|
#2 |
Senior Member
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 17 |
you can check the used memory with the command 'top', but my guess is, that you access your array out of its bounds
|
|
January 22, 2007, 06:54 |
"flow_field(){variable = 0;}"
|
#3 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
"flow_field(){variable[VertG][HoriG] = 0;}" will index outside 'variable'.
Use e.g. valgrind to pick up these errors. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Carrays | shuo | OpenFOAM Running, Solving & CFD | 0 | January 16, 2007 20:09 |