]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
remove some deprecated stuff
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 1 Mar 2013 16:44:29 +0000 (16:44 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 1 Mar 2013 16:44:29 +0000 (16:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@28696 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/interpolate_03.cc
tests/mpi/petsc_01.cc
tests/mpi/trilinos_ghost_01.cc
tests/mpi/trilinos_ghost_02.cc
tests/mpi/trilinos_ghost_03.cc
tests/mpi/trilinos_ghost_03_linfty.cc
tests/mpi/trilinos_ghost_05.cc

index 423bfcf7b9475624972f7dde541600b68da9372e..b8f0298ef7101055ee3529fb3432ffba10053169 100644 (file)
@@ -71,7 +71,6 @@ void test()
   VectorTools::interpolate (dofh,
                            LinearFunction<dim>(),
                            interpolated);
-  interpolated.compress();
 
   double norm = interpolated.l2_norm();
   if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 0)
index daa7fec5f353b31fdf2bdd1241ec5a99ab631edc..ecbb3706ff40124dc34d84ed6966ac1cc8ffb5f8 100644 (file)
@@ -80,8 +80,8 @@ void test()
 
 int main(int argc, char *argv[])
 {
-  PetscInitialize(&argc,&argv,0,0);
-
+  Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv);
   if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 0)
     {
       std::ofstream logfile(output_file_for_mpi("petsc_01").c_str());
@@ -93,6 +93,4 @@ int main(int argc, char *argv[])
     }
   else
     test();
-
-  PetscFinalize();
 }
index 6458d55a9f4a5758e1b9abd297145f1ecb59e88c..92ed49f05740d5c3a9959b991af746882275ed72 100644 (file)
@@ -47,7 +47,7 @@ void test ()
   v(myid*2)=myid*2.0;
   v(myid*2+1)=myid*2.0+1.0;
 
-  v.compress();
+  v.compress(VectorOperation::insert);
   v*=2.0;
 
   if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 0)
index cddbf6d610b9d53f9cc5d6b5c5f60a7a075885f6..f875a65916012a9150fb488bad0856428b1c32f2 100644 (file)
@@ -48,7 +48,7 @@ void test ()
   v(myid*2)=myid*2.0;
   v(myid*2+1)=myid*2.0+1.0;
 
-  v.compress();
+  v.compress(VectorOperation::insert);
 
                                  // assignment with transfer to ghost 
   v_tmp = v;
index 1a092634a3e73e5ec898b6b392e22d334efe427a..007a77d84805be8ac79252f3432931a6ba1c6d66 100644 (file)
@@ -48,7 +48,7 @@ void test ()
   v(myid*2)=1.0;
   v(myid*2+1)=1.0;
 
-  v.compress();
+  v.compress(VectorOperation::insert);
 
   v_tmp.reinit(v,false,true);
 
index d553a18cbca8f0ea40ea0c660a9b671f687c9340..08eb65c4248f0b9bfa41db8bba8f3053aabbdc14 100644 (file)
@@ -48,7 +48,7 @@ void test ()
   v(myid*2)=myid*2;
   v(myid*2+1)=myid*2+1;
 
-  v.compress();
+  v.compress(VectorOperation::insert);
 
   v_tmp.reinit(v,false,true);
 
index 6fde269be7de5c0a5ce8cf0045c9d3dc6866dee3..470c700eb3789f41fc06a17b81358e8aec34e568 100644 (file)
@@ -50,7 +50,7 @@ void test ()
   x(myid*2+1)=myid*2.0+1.0;
 
                                   // transfer to ghosted vector v and check
-  x.compress();
+  x.compress(VectorOperation::insert);
   v=x;
 
   Assert(v(myid*2) == myid*2.0, ExcInternalError());

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.