Re: [petsc-users] Code sometimes work, sometimes hang when increase cpu usage

2015-12-25 Thread Matthew Knepley
It appears that you have an uninitialized variable (or more than one). When compiled with debugging, variables are normally initialized to zero. Thanks, Matt On Fri, Dec 25, 2015 at 5:41 AM, TAY wee-beng wrote: > Hi, > > Sorry, there seems to be some problems with my valgrind. I have re

Re: [petsc-users] Code sometimes work, sometimes hang when increase cpu usage

2015-12-25 Thread TAY wee-beng
Hi, I just realised that the nodes which I tested on may have some problems, as it has just been setup. So there's problem in the MPI communication. I now do my test on the old nodes. I have reduced my problem to a serial one. The code works fine with the debug version. But for the optimized