]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix an oversight.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 12 Sep 2011 01:27:16 +0000 (01:27 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 12 Sep 2011 01:27:16 +0000 (01:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@24308 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/p4est_3d_constraintmatrix_04.cc

index 3a86a13b91676cc15dff0c65975e4d8b4b01f1ff..3ca799f46a8696cc8acd6952c3ec46c13fe9100d 100644 (file)
@@ -69,7 +69,7 @@ void test ()
 
   IndexSet locally_active (dof.n_dofs());
   DoFTools::extract_locally_active_dofs (dof, locally_active);
-  std::ofstream file (("p4est_3d_constraintmatrix_04/dat."+Utilities::int_to_string(myid,1)).c_str());
+  std::ofstream file((std::string("p4est_3d_constraintmatrix_04/ncpu_") + Utilities::int_to_string(Utilities::System::get_n_mpi_processes (MPI_COMM_WORLD)) + "/dat." + Utilities::int_to_string(myid)).c_str());
   file << "**** proc " << myid << ": \n\n";
   file << "Constraints:\n";
   constraints.print(file);

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.