]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Another bunch of bugfixes
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 13 Sep 2013 21:38:50 +0000 (21:38 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 13 Sep 2013 21:38:50 +0000 (21:38 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30699 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/blockvec_01.cc
tests/mpi/p4est_2d_constraintmatrix_01.cc
tests/mpi/p4est_2d_constraintmatrix_03.cc
tests/mpi/p4est_3d_constraintmatrix_01.cc
tests/mpi/p4est_3d_constraintmatrix_04.cc
tests/mpi/parallel_partitioner_03.cc

index 0ed5b503e6b5fe7765fc9ae0d2cd6ccee030fe6a..54ff80084bf585716355ece07ef53df5e853450f 100644 (file)
@@ -63,7 +63,7 @@ void test ()
   deallog << "size[1]: " << v.block(1).size() << std::endl;
 
   {
-    std::ofstream file (("dat." + Utilities::int_to_string(myid)).c_str());
+    std::ofstream file ((std::string("dat.") + Utilities::int_to_string(myid)).c_str());
 
     file << "**** proc " << myid << std::endl;
     v.print(file);
@@ -75,7 +75,7 @@ void test ()
     {
       for (unsigned int i=0; i<Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD); ++i)
         {
-          cat_file(("dat." + Utilities::int_to_string(i)).c_str());
+          cat_file((std::string("dat.") + Utilities::int_to_string(i)).c_str());
         }
     }
 
index cf9e1562e9697a224ddff84c722a7f3500786130..8c4d72c285178327fe432485e9484a7178bd42cc 100644 (file)
@@ -70,7 +70,7 @@ void test()
   DoFTools::make_hanging_node_constraints (dofh, cm2);
 
   {
-    std::ofstream file((std::string("dat." + Utilities::int_to_string(myid)).c_str());
+    std::ofstream file((std::string("dat.") + Utilities::int_to_string(myid)).c_str());
     file << "**** proc " << myid << std::endl;
     cm.print(file);
     file << "****" << std::endl;
@@ -86,7 +86,7 @@ void test()
     {
       for (unsigned int i=0; i<numproc; ++i)
         {
-          cat_file((std::string("dat." + Utilities::int_to_string(i)).c_str());
+          cat_file((std::string("dat.") + Utilities::int_to_string(i)).c_str());
         }
 
     }
index b166b2f2d2e1a6f5659bf0d9addb7ee2f6ed45a0..c7bab7f9a3ce572d62d1aa2f6e362281adb5c480 100644 (file)
@@ -206,7 +206,7 @@ void test()
 
   if (myid==0)
     {
-      std::ofstream file((std::string("dat." + Utilities::int_to_string(myid)).c_str());
+      std::ofstream file((std::string("dat.") + Utilities::int_to_string(myid)).c_str());
       file << "**** proc " << myid << std::endl;
       x_dub.print(file);
     }
@@ -215,7 +215,7 @@ void test()
 
   if (myid==0)
     {
-      cat_file((std::string("dat." + Utilities::int_to_string(0)).c_str());
+      cat_file((std::string("dat.") + Utilities::int_to_string(0)).c_str());
     }
 
   tr.set_boundary (0);
index 3acaf35386752bd9b625d3dbf26a9f7e81896bac..57dc4fbc4db3ebd3b9aeca02c2b18b6652e0e9e9 100644 (file)
@@ -80,7 +80,7 @@ void test()
   DoFTools::make_hanging_node_constraints (dofh, cm2);
 
   {
-    std::ofstream file((std::string("dat." + Utilities::int_to_string(myid)).c_str());
+    std::ofstream file((std::string("dat.") + Utilities::int_to_string(myid)).c_str());
     file << "**** proc " << myid << std::endl;
     cm.print(file);
     file << "****" << std::endl;
@@ -96,7 +96,7 @@ void test()
     {
       for (unsigned int i=0; i<numproc; ++i)
         {
-          cat_file((std::string("dat." + Utilities::int_to_string(i)).c_str());
+          cat_file((std::string("dat.") + Utilities::int_to_string(i)).c_str());
         }
 
     }
index 6db129efac494a250234efbbdb82f96b10c99b7f..b7fcb874e3dbf27347c5ddd9d7e0020d96dcef43 100644 (file)
@@ -73,7 +73,7 @@ void test ()
 
   IndexSet locally_active (dof.n_dofs());
   DoFTools::extract_locally_active_dofs (dof, locally_active);
-  std::ofstream file((std::string("dat." + Utilities::int_to_string(myid)).c_str());
+  std::ofstream file((std::string("dat.") + Utilities::int_to_string(myid)).c_str());
   file << "**** proc " << myid << ": \n\n";
   file << "Constraints:\n";
   constraints.print(file);
@@ -88,7 +88,7 @@ void test ()
     {
       for (unsigned int i=0; i<numproc; ++i)
         {
-          cat_file((std::string("dat." + Utilities::int_to_string(i)).c_str());
+          cat_file((std::string("dat.") + Utilities::int_to_string(i)).c_str());
         }
     }
 }
index 214cd7ba5cc42343a9ecd91dd496f7f6c50f1591..61781c4a426ccf9101274b0e25433166830d0c08 100644 (file)
@@ -63,7 +63,7 @@ void test ()
 
   // write the info on ghost processors and import indices to file
   {
-    std::ofstream file(("dat." + Utilities::int_to_string(myid)).c_str());
+    std::ofstream file((std::string("dat.") + Utilities::int_to_string(myid)).c_str());
     file << "**** proc " << myid << std::endl;
     file << "ghost targets: ";
     for (unsigned int i=0; i<v.ghost_targets().size(); ++i)
@@ -88,7 +88,7 @@ void test ()
     {
       for (unsigned int i=0; i<numproc; ++i)
         {
-          cat_file(("dat." + Utilities::int_to_string(i)).c_str());
+          cat_file((std::string("dat.") + Utilities::int_to_string(i)).c_str());
         }
 
     }

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.