]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
use correct MPI communicator
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 23 Aug 2013 21:47:33 +0000 (21:47 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 23 Aug 2013 21:47:33 +0000 (21:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@30464 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/data_out_base.cc

index be49748d32cbab031c6dc15359e0d81c91b154c7..b285026281f3e4b02f70a2095d3c05481f13450e 100644 (file)
@@ -6498,7 +6498,7 @@ void DataOutInterface<dim,spacedim>::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<char *>(filename),
+  MPI_File_open(comm, const_cast<char *>(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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.