]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
revert last edit partly and fix test
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Aug 2012 21:35:06 +0000 (21:35 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Aug 2012 21:35:06 +0000 (21:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@26092 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/no_flux_constraints_02.cc
tests/mpi/no_flux_constraints_03.cc
tests/mpi/no_flux_constraints_03/ncpu_1/cmp/generic
tests/mpi/no_flux_constraints_03/ncpu_9/cmp/generic

index 3bde23bcb48996c881b6292dfdeb4b63ea61d913..2256bed104bd49061653dadaabad176b6e288ec4 100644 (file)
@@ -122,13 +122,10 @@ void test()
 
   std::string base = output_file_for_mpi("no_flux_constraints_02");
   
-  if (myid==0)
-       system(("rm -rf " + base + "cm_?.dot").c_str());
-
   MPI_Barrier(MPI_COMM_WORLD);
 
   { //write the constraintmatrix to a file on each cpu
-       std::string fname = base+"cm_" + Utilities::int_to_string(numprocs) + "_" + Utilities::int_to_string(myid) + ".dot";
+       std::string fname = base+"cm_" + Utilities::int_to_string(myid) + ".dot";
        std::ofstream file(fname.c_str());
        constraints.print(file);
   }
@@ -138,7 +135,7 @@ void test()
   {
        //sort and merge the constraint matrices on proc 0, generate a checksum
        //and output that into the deallog
-       system((std::string("cat ") + base+"cm_" +Utilities::int_to_string(numprocs)+ "_?.dot|sort -n|uniq >" + base+"cm").c_str());
+       system((std::string("cat ") + base+"cm_?.dot|sort -n|uniq >" + base+"cm").c_str());
        system((std::string("md5sum ") + base + "cm >" + base + "cm.check").c_str());
        {
          std::ifstream file((base+"cm.check").c_str());
index f99587e4d12f2676eeb5951664edff6a4d1bbb5f..bede6939d7b38b13f7421475c38004c2b5197fb2 100644 (file)
@@ -92,13 +92,13 @@ void test()
   constraints.close();
 
   std::string base = output_file_for_mpi("no_flux_constraints_03");
-  
+
   MPI_Barrier(MPI_COMM_WORLD);
-  
+
   { //write the constraintmatrix to a file on each cpu
-       std::string fname = base+"cm_" + Utilities::int_to_string(numprocs) + "_" + Utilities::int_to_string(myid) + ".dot";
-       std::ofstream file(fname.c_str());
-       constraints.print(file);
+    std::string fname = base+"cm_" + Utilities::int_to_string(myid) + ".dot";
+    std::ofstream file(fname.c_str());
+    constraints.print(file);
   }
   MPI_Barrier(MPI_COMM_WORLD);
   sleep(1);
@@ -106,16 +106,18 @@ void test()
   {
        //sort and merge the constraint matrices on proc 0, generate a checksum
        //and output that into the deallog
-       system((std::string("cat ") + base+"cm_" +Utilities::int_to_string(numprocs)+ "_?.dot|sort -n|uniq|md5sum >" + base+Utilities::int_to_string(numprocs)+"cm.check").c_str());
-       {
-         std::ifstream file((base+Utilities::int_to_string(numprocs)+"cm.check").c_str());
-         std::string str;
-         while (!file.eof())
-         {
-               std::getline(file, str);
-               deallog << str << std::endl;
-         }
-       }
+        system((std::string("cat ") + base+"cm_?.dot|sort -n|uniq >" + base+"cm").c_str());
+        system((std::string("md5sum ") + base + "cm >" + base + "cm.check").c_str());
+        {
+          std::ifstream file((base+"cm.check").c_str());
+          std::string str;
+          while (!file.eof())
+            {
+              std::getline(file, str);
+              deallog << str << std::endl;
+            }
+        }
+
   }
 
                                // print the number of constraints. since
index b5ca27acb7a041e39f6783aa2661cfc17332a4b8..a58800dca0c7e4963c3d3e0c9934f7db257a0468 100644 (file)
@@ -1,7 +1,7 @@
 
 DEAL:0:3d::#cells = 568
 DEAL:0:3d::#dofs = 2481
-DEAL:0:3d::17a5cf8e1f66b693f8b54bf284cab4ac  -
+DEAL:0:3d::17a5cf8e1f66b693f8b54bf284cab4ac  no_flux_constraints_03/ncpu_1/outputcm
 DEAL:0:3d::
 DEAL:0:3d::#constraints on 0: 702
 DEAL:0:3d::OK
index 1da64b5073e74ae3143235f2e06aa62ab720a675..45d63a150dcc0e001f5f5612a9a2281ccaab0d3e 100644 (file)
@@ -1,7 +1,7 @@
 
 DEAL:0:3d::#cells = 568
 DEAL:0:3d::#dofs = 2481
-DEAL:0:3d::17a5cf8e1f66b693f8b54bf284cab4ac  -
+DEAL:0:3d::17a5cf8e1f66b693f8b54bf284cab4ac  no_flux_constraints_03/ncpu_9/outputcm
 DEAL:0:3d::
 DEAL:0:3d::#constraints on 0: 198
 DEAL:0:3d::#constraints on 1: 221

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.