]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove static_casts that are now no longer necessary since parallel::distributed...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 Jun 2011 01:16:42 +0000 (01:16 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 Jun 2011 01:16:42 +0000 (01:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@23856 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/constraint_matrix_trilinos_bug.cc
tests/mpi/p4est_2d_constraintmatrix_01.cc
tests/mpi/p4est_2d_constraintmatrix_02.cc
tests/mpi/p4est_2d_constraintmatrix_03.cc
tests/mpi/p4est_2d_constraintmatrix_04.cc
tests/mpi/p4est_2d_constraintmatrix_05.cc
tests/mpi/p4est_3d_constraintmatrix_01.cc
tests/mpi/p4est_3d_constraintmatrix_02.cc
tests/mpi/p4est_3d_constraintmatrix_03.cc
tests/mpi/p4est_3d_constraintmatrix_04.cc
tests/mpi/p4est_get_subdomain_association.cc

index cf2f20b41aeb2fcf8c5b2b49cc0867c2b1bcf1db..7116fc1135bb9401b06e5d9d6ba3b2879aa16996 100644 (file)
@@ -140,12 +140,12 @@ void test()
   x_rel.compress();
   
   ConstraintMatrix cm(relevant_set);
-  DoFTools::make_hanging_node_constraints (* static_cast<DoFHandler<dim>* >(&dofh), cm);
+  DoFTools::make_hanging_node_constraints (dofh, cm);
   std::vector<bool> velocity_mask (dim+1, true);
   
   velocity_mask[dim] = false;
 
-  VectorTools::interpolate_boundary_values (static_cast<const DoFHandler<dim>&>(dofh),
+  VectorTools::interpolate_boundary_values (dofh,
                                            0,
                                            ZeroFunction<dim>(dim+1),
                                            cm,
index 2cc3c28ff287ebeb23d02fed6d935747a38c386d..8ae11ba1a007270bdf5bb3398a8f87e64cc148e4 100644 (file)
@@ -61,9 +61,9 @@ void test()
   DoFTools::extract_locally_active_dofs (dofh, dof_set);
 
   ConstraintMatrix cm;
-  DoFTools::make_hanging_node_constraints (* static_cast<DoFHandler<dim>* >(&dofh), cm);
+  DoFTools::make_hanging_node_constraints (dofh, cm);
   ConstraintMatrix cm2(dof_set);
-  DoFTools::make_hanging_node_constraints (* static_cast<DoFHandler<dim>* >(&dofh), cm2);
+  DoFTools::make_hanging_node_constraints (dofh, cm2);
 
   {
     std::ofstream file((std::string("p4est_2d_constraintmatrix_01/dat.") + Utilities::int_to_string(myid)).c_str());
index b4e2758a896b7f81fb02be5204811beb11febb63..6d2631582f7aa60a9cffc7952e1f6ff164526c69 100644 (file)
@@ -64,9 +64,9 @@ void test()
       DoFTools::extract_locally_active_dofs (dofh, dof_set);
 
       ConstraintMatrix cm;
-      DoFTools::make_hanging_node_constraints (* static_cast<DoFHandler<dim>* >(&dofh), cm);
+      DoFTools::make_hanging_node_constraints (dofh, cm);
       ConstraintMatrix cm2(dof_set);
-      DoFTools::make_hanging_node_constraints (* static_cast<DoFHandler<dim>* >(&dofh), cm2);
+      DoFTools::make_hanging_node_constraints (dofh, cm2);
 
       if (myid==0)
        {
index 4b79f3f60b5fd367d461af2bf1646f12e8cbfc69..4e0d9c9de3d4139f784f7740c9eacace6b1dc1a3 100644 (file)
@@ -152,12 +152,12 @@ void test()
   x_rel.compress();
   
   ConstraintMatrix cm(relevant_set);
-  DoFTools::make_hanging_node_constraints (* static_cast<DoFHandler<dim>* >(&dofh), cm);
+  DoFTools::make_hanging_node_constraints (dofh, cm);
   std::vector<bool> velocity_mask (dim+1, true);
   
   velocity_mask[dim] = false;
                                    
-  VectorTools::interpolate_boundary_values (static_cast<const DoFHandler<dim>&>(dofh),
+  VectorTools::interpolate_boundary_values (dofh,
                                              0,
                                              ZeroFunction<dim>(dim+1),
                                              cm,
@@ -167,7 +167,7 @@ void test()
     no_normal_flux_boundaries.insert (1);
 
                                     
-    VectorTools::compute_no_normal_flux_constraints (static_cast<const DoFHandler<dim>&>(dofh), 0,
+    VectorTools::compute_no_normal_flux_constraints (dofh, 0,
                                                     no_normal_flux_boundaries,
                                                     cm);
                                     
index 039ec5827f37f23428f483b590ca8c5f5e5713d2..b0388ea5785844a10c051fa68248e04e1ac424b0 100644 (file)
@@ -197,7 +197,7 @@ void test()
   TrilinosWrappers::MPI::Vector x;
   x.reinit(owned_set, MPI_COMM_WORLD);
 
-  VectorTools::interpolate(* static_cast<DoFHandler<dim>* >(&dofh),
+  VectorTools::interpolate(dofh,
                           TemperatureInitialValues<dim>(),
                           x);
   x.compress();
@@ -286,12 +286,12 @@ void test()
       x_rel.compress();
   
       ConstraintMatrix cm(relevant_set);
-      DoFTools::make_hanging_node_constraints (* static_cast<DoFHandler<dim>* >(&dofh), cm);
+      DoFTools::make_hanging_node_constraints (dofh, cm);
 /*  std::vector<bool> velocity_mask (dim+1, true);
   
     velocity_mask[dim] = false;
                                    
-    VectorTools::interpolate_boundary_values (static_cast<const DoFHandler<dim>&>(dofh),
+    VectorTools::interpolate_boundary_values (dofh,
     0,
     ZeroFunction<dim>(1),
     cm,
@@ -307,7 +307,7 @@ void test()
   TrilinosWrappers::MPI::Vector x_ref;
   x_ref.reinit(owned_set, MPI_COMM_WORLD);
   
-  VectorTools::interpolate(* static_cast<DoFHandler<dim>* >(&dofh),
+  VectorTools::interpolate(dofh,
                           TemperatureInitialValues<dim>(),
                           x_ref);
   x_ref.compress();
index c8ebbaf31d3fe293f9843ddd1ace53a6663ca04d..1a2c3a443da3aa77c3499650b7bfa3b9c1ca394e 100644 (file)
@@ -57,7 +57,7 @@ void test()
 
   TrilinosWrappers::MPI::Vector x_ref;
   x_ref.reinit(owned_set, MPI_COMM_WORLD);
-  VectorTools::interpolate(* static_cast<DoFHandler<dim>* >(&dofh),
+  VectorTools::interpolate(dofh,
                           ConstantFunction<dim> (1.),
                           x_ref);
   x_ref.compress();
@@ -69,7 +69,7 @@ void test()
                                // anything
   x1 = x_ref;
   ConstraintMatrix cm(relevant_set);
-  DoFTools::make_hanging_node_constraints (* static_cast<DoFHandler<dim>* >(&dofh), cm);
+  DoFTools::make_hanging_node_constraints (dofh, cm);
   cm.distribute(x1);
 
   x1 -= x_ref;
index 271593821bf294968211929f5a39ba255293e98c..4ecb625df293c76288fcba53011e4aab8a731f42 100644 (file)
@@ -71,9 +71,9 @@ void test()
   DoFTools::extract_locally_relevant_dofs (dofh, dof_set);
 
   ConstraintMatrix cm;
-  DoFTools::make_hanging_node_constraints (* static_cast<DoFHandler<dim>* >(&dofh), cm);
+  DoFTools::make_hanging_node_constraints (dofh, cm);
   ConstraintMatrix cm2(dof_set);
-  DoFTools::make_hanging_node_constraints (* static_cast<DoFHandler<dim>* >(&dofh), cm2);
+  DoFTools::make_hanging_node_constraints (dofh, cm2);
 
   {
     std::ofstream file((std::string("p4est_3d_constraintmatrix_01/dat.") + Utilities::int_to_string(myid)).c_str());
index 576c05360db933726dbdedb3b37fe681a9d79c41..84c358bfea358211d8aa308356fe117964ff600f 100644 (file)
@@ -86,7 +86,7 @@ void test()
   x_rel.compress();
   
   ConstraintMatrix cm(relevant_set);
-  DoFTools::make_hanging_node_constraints (* static_cast<DoFHandler<dim>* >(&dofh), cm);
+  DoFTools::make_hanging_node_constraints (dofh, cm);
 
                                   //x.print(std::cout);
   cm.distribute(x);
index 2802fb85a9c22945feebdc765e668e56c9269d6f..1255376e6fe25cd84b7c208e184ba4734c3c389f 100644 (file)
@@ -196,7 +196,7 @@ void test()
   TrilinosWrappers::MPI::Vector x;
   x.reinit(owned_set, MPI_COMM_WORLD);
 
-  VectorTools::interpolate(* static_cast<DoFHandler<dim>* >(&dofh),
+  VectorTools::interpolate(dofh,
                           TemperatureInitialValues<dim>(),
                           x);
   x.compress();
@@ -282,12 +282,12 @@ void test()
       x_rel.compress();
 
       ConstraintMatrix cm(relevant_set);
-      DoFTools::make_hanging_node_constraints (* static_cast<DoFHandler<dim>* >(&dofh), cm);
+      DoFTools::make_hanging_node_constraints (dofh, cm);
 /*  std::vector<bool> velocity_mask (dim+1, true);
 
     velocity_mask[dim] = false;
 
-    VectorTools::interpolate_boundary_values (static_cast<const DoFHandler<dim>&>(dofh),
+    VectorTools::interpolate_boundary_values (dofh,
     0,
     ZeroFunction<dim>(1),
     cm,
@@ -303,7 +303,7 @@ void test()
   TrilinosWrappers::MPI::Vector x_ref;
   x_ref.reinit(owned_set, MPI_COMM_WORLD);
 
-  VectorTools::interpolate(* static_cast<DoFHandler<dim>* >(&dofh),
+  VectorTools::interpolate(dofh,
                           TemperatureInitialValues<dim>(),
                           x_ref);
   x_ref.compress();
index 52aa676dd590f77a97b518480c4f213806b69dae..d03e903b2a3573c9ff454c93fd6163f89459db6d 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2009, 2010 by the deal.II authors
+//    Copyright (C) 2009, 2010, 2011 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -59,7 +59,7 @@ void test ()
   IndexSet locally_relevant (dof.n_dofs());
   DoFTools::extract_locally_relevant_dofs (dof, locally_relevant);
   ConstraintMatrix constraints (locally_relevant);
-  DoFTools::make_hanging_node_constraints (static_cast<const DoFHandler<dim>&>(dof), constraints);
+  DoFTools::make_hanging_node_constraints (dof, constraints);
   constraints.close();
 
                                // print out constraints for each
index 6394ab3f9193a298a13d853e1d10e031a9fc3fa9..8f717f23e61340ba7075be0eda49c54e2261a87a 100644 (file)
@@ -62,7 +62,7 @@ void test()
 
        const IndexSet set
         = DoFTools::dof_indices_with_subdomain_association
-        (static_cast<const DoFHandler<dim>&>(dofh),
+        (dofh,
          tr.locally_owned_subdomain());
 
        deallog << set.n_elements() << std::endl;

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.