]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix two deprecation warnings.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Mar 2013 13:40:10 +0000 (13:40 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Mar 2013 13:40:10 +0000 (13:40 +0000)
git-svn-id: https://svn.dealii.org/trunk@28869 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-48/step-48.cc

index 2c0c9f2a586dacb5c170544ff32307455dc971c8..3b1d4d5acd622579f25d3b52f6d50811e84ba506 100644 (file)
 #include <deal.II/lac/vector.h>
 #include <deal.II/grid/tria.h>
 #include <deal.II/grid/grid_generator.h>
-#include <deal.II/grid/tria_boundary_lib.h>
 #include <deal.II/dofs/dof_tools.h>
 #include <deal.II/dofs/dof_handler.h>
 #include <deal.II/lac/constraint_matrix.h>
-#include <deal.II/lac/sparse_matrix.h>
-#include <deal.II/lac/compressed_simple_sparsity_pattern.h>
-#include <deal.II/lac/trilinos_vector.h>
 #include <deal.II/fe/fe_q.h>
 #include <deal.II/fe/fe_values.h>
 #include <deal.II/numerics/vector_tools.h>
@@ -133,7 +129,7 @@ namespace Step48
         fe_eval.distribute_local_to_global (inv_mass_matrix);
       }
 
-    inv_mass_matrix.compress();
+    inv_mass_matrix.compress(VectorOperation::add);
     for (unsigned int k=0; k<inv_mass_matrix.local_size(); ++k)
       if (inv_mass_matrix.local_element(k)>1e-15)
         inv_mass_matrix.local_element(k) = 1./inv_mass_matrix.local_element(k);
@@ -322,7 +318,7 @@ namespace Step48
   SineGordonProblem<dim>::SineGordonProblem ()
     :
     pcout (std::cout,
-           Utilities::System::get_this_mpi_process(MPI_COMM_WORLD)==0),
+           Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)==0),
 #ifdef DEAL_II_WITH_P4EST
     triangulation (MPI_COMM_WORLD),
 #endif

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.