19 | | 5. Run the problem with debug flags turned on. If any pointer or memory allocation issues are found, then fix them first. |
| 19 | 5. Run the problem with debug flags turned on. If any pointer or memory allocation issues are found, then fix them first. If segfaults are other memory errors still occur without being caught by the compiler's error checking then |
| 20 | * Make absolutely sure the stack size is large enough (preferrably unlimited) |
| 21 | * Run the problem somewhere where you can monitor the memory usage (on bluehive or on bluegene with totalview) and check that is within the available resources |
| 22 | * Run a much lower resolution run for a fraction of the runtime but with all of the physics turned on using valgrind or totalview and fix any errors that appear. |