> > > > > The troubling bit about this, which caused me to suggest that it was a > race condition, was that if I modify the code a little bit I can get the > correct result from the scatter. For example, we weren’t always checking > the returned error flag. >
If there was an error then you should have seen PETSc output to that effect. Could you have missed that? You should definitely add these error check, but that gets rid of the error! Could this be a compiler error?