describe with extreme verbosity only shows info on process 0
Created by: nschloe
The output of
#include <Teuchos_DefaultComm.hpp>
#include <Teuchos_VerboseObject.hpp>
#include <Tpetra_Map.hpp>
int main ( int argc, char *argv[] )
{
Teuchos::GlobalMPISession session(&argc, &argv, NULL);
auto comm = Teuchos::DefaultComm<int>::getComm();
Tpetra::Map<int,int> map(23, 0, comm);
auto out = Teuchos::VerboseObjectBase::getDefaultOStream();
map.describe(*out, Teuchos::VERB_EXTREME);
return EXIT_SUCCESS;
}
when run on two procs is
$ make && mpiexec -n 2 ./tpetra-test
Process 0:
My number of entries: 12
My minimum global index: 0
My maximum global index: 11
My global indices: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
The same goes for vectors, probably other types.