9 MPI_Comm comm=PETSC_COMM_WORLD;
11 const char *format = msg.c_str();
16 PetscFunctionBeginUser;
17 ierr = MPI_Comm_rank(comm,&rank);CHKERRQ(ierr);
22 va_arg(Argp,
const char*);
23 ierr = (*PetscVFPrintf)(PETSC_STDOUT,format,Argp);CHKERRQ(ierr);
26 PetscFunctionReturn(0);
33 return printf(msg,PetscRealPart(val),PetscImaginaryPart(val));