]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove some deprecated stuff
authorTimo Heister <timo.heister@gmail.com>
Fri, 1 Mar 2013 16:48:48 +0000 (16:48 +0000)
committerTimo Heister <timo.heister@gmail.com>
Fri, 1 Mar 2013 16:48:48 +0000 (16:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@28697 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/step-40_direct_solver.cc
tests/mpi/trilinos_compress_bug.cc
tests/mpi/trilinos_ghost_05.cc
tests/mpi/trilinos_matvec_01.cc
tests/mpi/trilinos_matvec_02.cc
tests/mpi/trilinos_sparse_matrix_mmult_01.cc
tests/mpi/trilinos_sparse_matrix_print_01.cc

index 1fd90be09ea625b4c1f3ccce3fb1fc676601b0e3..e0293e5b1e9769d145791345bad3abeb82941b4a 100644 (file)
@@ -228,8 +228,8 @@ namespace Step40
                                                   system_rhs);
         }
 
-    system_matrix.compress ();
-    system_rhs.compress ();
+    system_matrix.compress (VectorOperation::add);
+    system_rhs.compress (VectorOperation::add);
   }
 
 
index 6bd0c7ffd550131fbb3534cfc042cb641f1d1a5b..12019288949c289dfd8cb9f64c3dd7ab43f26976 100644 (file)
@@ -56,7 +56,7 @@ void test ()
     }
   }
   
-  test1.compress(Add);
+  test1.compress(VectorOperation::add);
 
   //TrilinosWrappers::MPI::Vector test(test1.vector_partitioner()); // works
   //TrilinosWrappers::MPI::Vector test(locally_owned); // works
@@ -70,7 +70,7 @@ void test ()
   if (myid==0)
     deallog << "before compress: " << test(locally_owned.nth_index_in_set(5)) << endl;
       
-   test.compress(Insert);
+  test.compress(VectorOperation::insert);
   
   if (myid==0)
     deallog << "after compress: " << test(locally_owned.nth_index_in_set(5)) << endl;
index 470c700eb3789f41fc06a17b81358e8aec34e568..90386fbcfcc8ab184e33615e3746b9b0aa3715e9 100644 (file)
@@ -59,7 +59,6 @@ void test ()
 
                                   // change x, transfer, and check again
   x*=2.0;
-  x.compress();
   v=x;
   
   Assert(v(myid*2) == myid*4.0, ExcInternalError());
index 2cf80eb7c9b2a7968242f13db34fa05c71aa1764..f1305de745f61782b2f5ce4222eebd875c8203ef 100644 (file)
@@ -83,7 +83,7 @@ void test ()
     }
   if ((n_procs == 1) || (my_id == 1))
     A.add(2,3, 2.0);
-  A.compress();
+  A.compress(VectorOperation::add);
 
   TrilinosWrappers::MPI::Vector x, y;
   x.reinit (col_partitioning, MPI_COMM_WORLD);
index 420913668ba6991266afe28e2c611d4d94c2811c..b8d3e4b682df6c2134968707044d62176785d168 100644 (file)
@@ -83,7 +83,7 @@ void test ()
     }
   if ((n_procs == 1) || (my_id == 1))
     A.add(2,3, 2.0);
-  A.compress();
+  A.compress(VectorOperation::add);
 
   TrilinosWrappers::MPI::Vector x, y;
   x.reinit (col_partitioning, MPI_COMM_WORLD);
index 7a8bcc6117bf907c915ab0c3bedfd5e23f5fc81d..e12ae39308288c1b28b21355adf5d3128226afaa 100644 (file)
@@ -78,7 +78,7 @@ void test ()
   for (unsigned int i = 0; i<n_entries; ++i)
     if (row_partitioning.is_element(line[i]))
       A.add(line[i], local_index[i], local_value[i]);
-  A.compress();
+  A.compress(VectorOperation::add);
 
   if (my_id == 0)
     {
@@ -93,7 +93,6 @@ void test ()
 
   TrilinosWrappers::SparseMatrix AtA;
   A.Tmmult (AtA, A);
-  AtA.compress ();
 
                                   /* AtA should be
 
index 51933e753e7b0463774990d8bfdde1f222d03818..d792ee630b6b0e57f9f4c2c715f74588b37fac3f 100644 (file)
@@ -70,7 +70,7 @@ void test ()
   A.reinit (sp);
   if ((n_procs == 1) || (my_id == 1))
     A.add(2,3, 2.0);
-  A.compress();
+  A.compress(VectorOperation::add);
 
   if ((n_procs == 1) || (my_id == 1))
     A.print(deallog.get_file_stream());

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.