From: heister Date: Fri, 23 Aug 2013 21:47:33 +0000 (+0000) Subject: use correct MPI communicator X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb8c387d1b25f0f78e729b3db60e4b8bd206cc45;p=dealii-svn.git use correct MPI communicator git-svn-id: https://svn.dealii.org/trunk@30464 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/data_out_base.cc b/deal.II/source/base/data_out_base.cc index be49748d32..b285026281 100644 --- a/deal.II/source/base/data_out_base.cc +++ b/deal.II/source/base/data_out_base.cc @@ -6498,7 +6498,7 @@ void DataOutInterface::write_vtu_in_parallel (const char *filename MPI_Info info; MPI_Info_create(&info); MPI_File fh; - MPI_File_open(MPI_COMM_WORLD, const_cast(filename), + MPI_File_open(comm, const_cast(filename), MPI_MODE_CREATE | MPI_MODE_WRONLY, info, &fh); MPI_File_set_size(fh, 0); // delete the file contents // this barrier is necessary, because otherwise others might already