SAMRAI
SAMRAI copied to clipboard
MPI_Attr_get problem.
I was using SGI MPI and MPI_Attr_get cannot retrive MPI_TAG_UB for communicator except MPI_COMM_WORLD, as documented in BergerRigoutsos.C:967.
The if statement at Line 978, 987 is to ensure that attribute MPI_TAG_UB has been obtained. However SGI MPI will not set the attribute pointer (tag_upper_bound_ptr) to NULL if the attribute is not obtained.
We should check flag != 0