| 2240d710 | 24-Dec-2013 |
Jed Brown <jedbrown@mcs.anl.gov> |
VecView_MPI_ASCII: avoid PetscObjectGetName unless really needed
Historically, VecView output has not included names, but the previous change to eagerly call PetscObjectGetName() changed output like
VecView_MPI_ASCII: avoid PetscObjectGetName unless really needed
Historically, VecView output has not included names, but the previous change to eagerly call PetscObjectGetName() changed output like
-Vec Object: 2 MPI processes +Vec Object:Vec_0x84000005_0 2 MPI processes
This commit reverts to only name vectors when necessary. It fixes the previously-inconsistent behavior where ranks other than 0 neglected to call PetscObjectGetName for PETSC_VIEWER_ASCII_VTK and PETSC_VIEWER_ASCII_VTK_CELL.
Reported-by: Barry Smith <bsmith@mcs.anl.gov>
show more ...
|