]> https://gitweb.dealii.org/ - dealii.git/commitdiff
replace occurances of ZeroFunction and ConstantFunction in all .cc
authorDenis Davydov <davydden@gmail.com>
Sat, 19 Aug 2017 13:55:59 +0000 (15:55 +0200)
committerDenis Davydov <davydden@gmail.com>
Sat, 19 Aug 2017 13:55:59 +0000 (15:55 +0200)
240 files changed:
examples/step-11/step-11.cc
examples/step-14/step-14.cc
examples/step-15/step-15.cc
examples/step-16/step-16.cc
examples/step-17/step-17.cc
examples/step-18/step-18.cc
examples/step-21/step-21.cc
examples/step-26/step-26.cc
examples/step-27/step-27.cc
examples/step-28/step-28.cc
examples/step-3/step-3.cc
examples/step-32/step-32.cc
examples/step-35/step-35.cc
examples/step-37/step-37.cc
examples/step-4/step-4.cc
examples/step-40/step-40.cc
examples/step-44/step-44.cc
examples/step-46/step-46.cc
examples/step-47/step-47.cc
examples/step-48/step-48.cc
examples/step-5/step-5.cc
examples/step-50/step-50.cc
examples/step-52/step-52.cc
examples/step-57/step-57.cc
examples/step-6/step-6.cc
examples/step-8/step-8.cc
tests/arpack/parpack_advection_diffusion_petsc.cc
tests/arpack/parpack_advection_diffusion_trilinos.cc
tests/arpack/step-36_ar.cc
tests/arpack/step-36_ar_shift.cc
tests/arpack/step-36_parpack.cc
tests/arpack/step-36_parpack_mf.cc
tests/arpack/step-36_parpack_mf_02.cc
tests/arpack/step-36_parpack_mf_03.cc
tests/arpack/step-36_parpack_trilinos.cc
tests/base/functions_constant_function_00.cc
tests/bits/anna_4.cc
tests/bits/apply_boundary_values_01.cc
tests/bits/apply_boundary_values_02.cc
tests/bits/fe_q_constraints.cc
tests/bits/joa_1.cc
tests/bits/make_boundary_constraints_01.cc
tests/bits/make_boundary_constraints_02.cc
tests/bits/point_difference_01.cc
tests/bits/point_difference_02.cc
tests/bits/step-11.cc
tests/bits/step-14.cc
tests/bits/step-15.cc
tests/bits/step-3.cc
tests/bits/step-5.cc
tests/bits/step-6-racoptimize-2.cc
tests/bits/step-6-racoptimize.cc
tests/bits/step-6.cc
tests/bits/step-8.cc
tests/codim_one/interpolation.cc
tests/dofs/dof_tools_19.cc
tests/dofs/interpolate_based_on_material_id_01.cc
tests/dofs/range_based_for_step-6.cc
tests/fail/circular_01.cc
tests/fail/hp-step-14.cc
tests/fail/hp-step-15.cc
tests/fail/rt_crash_01.cc
tests/fe/abf_01.cc
tests/fe/abf_02.cc
tests/fe/crash_01.cc
tests/fe/fe_enriched_step-36.cc
tests/fe/fe_enriched_step-36b.cc
tests/grid/build_triangulation_from_patch_04.cc
tests/grid/get_dof_to_support_patch_map_01.cc
tests/grid/grid_parallelepiped_04.cc
tests/hp/crash_17.cc
tests/hp/crash_18.cc
tests/hp/create_laplace_matrix_constraints_02.cc
tests/hp/create_laplace_matrix_constraints_02b.cc
tests/hp/create_mass_matrix_constraints_02.cc
tests/hp/create_mass_matrix_constraints_02b.cc
tests/hp/create_rhs_01.cc
tests/hp/fe_nothing_08.cc
tests/hp/fe_nothing_09.cc
tests/hp/fe_nothing_11.cc
tests/hp/fe_nothing_20.cc
tests/hp/fe_nothing_21.cc
tests/hp/hp_q_hierarchical_constraints.cc
tests/hp/integrate_difference_02.cc
tests/hp/integrate_difference_03.cc
tests/hp/interpolate_nothing_01.cc
tests/hp/interpolate_nothing_02.cc
tests/hp/interpolate_nothing_03.cc
tests/hp/step-11.cc
tests/hp/step-27.cc
tests/hp/step-3.cc
tests/hp/step-3a.cc
tests/hp/step-3b.cc
tests/hp/step-3c.cc
tests/hp/step-5.cc
tests/hp/step-6.cc
tests/hp/step-8.cc
tests/lac/block_matrices_04.cc
tests/lac/constrained_linear_operator_01.cc
tests/lac/constraints_hanging_nodes_bc.cc
tests/lac/constraints_local_to_global.cc
tests/lac/constraints_local_to_global_chunk.cc
tests/lac/diagonal_matrix_02.cc
tests/lac/inhomogeneous_constraints_block.cc
tests/lac/inhomogeneous_constraints_vector.cc
tests/lac/schur_complement_05.cc
tests/lac/solver_relaxation_04.cc
tests/lac/utilities_02.cc
tests/manifold/spherical_manifold_03.cc
tests/mappings/mapping_manifold_step-3.cc
tests/matrix_free/compress_constraints.cc
tests/matrix_free/copy.cc
tests/matrix_free/get_functions_float.cc
tests/matrix_free/get_values_plain.cc
tests/matrix_free/laplace_operator_01.cc
tests/matrix_free/laplace_operator_02.cc
tests/matrix_free/mass_operator_01.cc
tests/matrix_free/mass_operator_02.cc
tests/matrix_free/mass_operator_04.cc
tests/matrix_free/matrix_vector_02.cc
tests/matrix_free/matrix_vector_03.cc
tests/matrix_free/matrix_vector_06.cc
tests/matrix_free/matrix_vector_06_notempl.cc
tests/matrix_free/matrix_vector_07.cc
tests/matrix_free/matrix_vector_08.cc
tests/matrix_free/matrix_vector_09.cc
tests/matrix_free/matrix_vector_10.cc
tests/matrix_free/matrix_vector_11.cc
tests/matrix_free/matrix_vector_12.cc
tests/matrix_free/matrix_vector_13.cc
tests/matrix_free/matrix_vector_15.cc
tests/matrix_free/matrix_vector_16.cc
tests/matrix_free/matrix_vector_17.cc
tests/matrix_free/matrix_vector_18.cc
tests/matrix_free/matrix_vector_19.cc
tests/matrix_free/matrix_vector_20.cc
tests/matrix_free/matrix_vector_21.cc
tests/matrix_free/matrix_vector_22.cc
tests/matrix_free/matrix_vector_23.cc
tests/matrix_free/matrix_vector_hp.cc
tests/matrix_free/matrix_vector_large_degree_02.cc
tests/matrix_free/matrix_vector_mg.cc
tests/matrix_free/parallel_multigrid.cc
tests/matrix_free/parallel_multigrid_02.cc
tests/matrix_free/parallel_multigrid_adaptive_01.cc
tests/matrix_free/parallel_multigrid_adaptive_02.cc
tests/matrix_free/parallel_multigrid_adaptive_03.cc
tests/matrix_free/parallel_multigrid_adaptive_04.cc
tests/matrix_free/parallel_multigrid_adaptive_05.cc
tests/matrix_free/parallel_multigrid_mf.cc
tests/matrix_free/step-37.cc
tests/matrix_free/step-48.cc
tests/matrix_free/step-48b.cc
tests/matrix_free/step-48c.cc
tests/matrix_free/thread_correctness.cc
tests/matrix_free/thread_correctness_hp.cc
tests/mpi/constraint_matrix_trilinos_bug.cc
tests/mpi/data_out_faces_01.cc
tests/mpi/integrate_difference.cc
tests/mpi/interpolate_01.cc
tests/mpi/interpolate_02.cc
tests/mpi/interpolate_to_different_mesh_02.cc
tests/mpi/muelu_periodicity.cc
tests/mpi/multigrid_adaptive.cc
tests/mpi/multigrid_uniform.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_03.cc
tests/mpi/parallel_vector_back_interpolate.cc
tests/mpi/parallel_vector_interpolate.cc
tests/mpi/periodicity_01.cc
tests/mpi/periodicity_02.cc
tests/mpi/periodicity_03.cc
tests/mpi/step-40.cc
tests/mpi/step-40_direct_solver.cc
tests/mpi/trilinos_distribute_04.cc
tests/multigrid/boundary_01.cc
tests/multigrid/constrained_dofs_01.cc
tests/multigrid/constrained_dofs_02.cc
tests/multigrid/dof_01.cc
tests/multigrid/dof_02.cc
tests/multigrid/mg_coarse_01.cc
tests/multigrid/mg_output_dirichlet.cc
tests/multigrid/mg_renumbered_01.cc
tests/multigrid/mg_renumbered_02.cc
tests/multigrid/mg_renumbered_03.cc
tests/multigrid/step-16-02.cc
tests/multigrid/step-16-03.cc
tests/multigrid/step-16-04.cc
tests/multigrid/step-16-05.cc
tests/multigrid/step-16-06.cc
tests/multigrid/step-16-07.cc
tests/multigrid/step-16-50-mpi-linear-operator.cc
tests/multigrid/step-16-50-mpi-smoother.cc
tests/multigrid/step-16-50-mpi.cc
tests/multigrid/step-16-50-serial.cc
tests/multigrid/step-16-bdry1.cc
tests/multigrid/step-16.cc
tests/multigrid/step-50_01.cc
tests/multigrid/transfer_04a.cc
tests/multigrid/transfer_matrix_free_01.cc
tests/multigrid/transfer_matrix_free_02.cc
tests/multigrid/transfer_matrix_free_03.cc
tests/multigrid/transfer_matrix_free_06.cc
tests/multigrid/transfer_prebuilt_03.cc
tests/multigrid/transfer_prebuilt_04.cc
tests/multigrid/transfer_system_adaptive_02.cc
tests/multigrid/transfer_system_adaptive_04.cc
tests/multigrid/transfer_system_adaptive_06.cc
tests/multigrid/transfer_system_adaptive_08.cc
tests/numerics/create_laplace_matrix_constraints_01.cc
tests/numerics/create_laplace_matrix_constraints_02.cc
tests/numerics/create_laplace_matrix_constraints_02b.cc
tests/numerics/create_laplace_matrix_constraints_03.cc
tests/numerics/create_laplace_matrix_constraints_04.cc
tests/numerics/create_mass_matrix_constraints_01.cc
tests/numerics/create_mass_matrix_constraints_02.cc
tests/numerics/create_mass_matrix_constraints_02b.cc
tests/numerics/create_mass_matrix_constraints_03.cc
tests/numerics/create_mass_matrix_constraints_04.cc
tests/numerics/normal_flux_inhom_01.cc
tests/numerics/tangential_flux_inhom_01.cc
tests/physics/step-18-rotation_matrix.cc
tests/physics/step-18.cc
tests/physics/step-44-standard_tensors-material_push_forward.cc
tests/physics/step-44-standard_tensors-spatial.cc
tests/physics/step-44.cc
tests/quick_tests/step.cc
tests/slepc/step-36_parallel.cc
tests/slepc/step-36_parallel_02.cc
tests/slepc/step-36_parallel_03.cc
tests/trilinos/solver_control_06.cc
tests/umfpack/umfpack_04.cc
tests/vector_tools/integrate_difference_01.cc
tests/vector_tools/integrate_difference_02.cc
tests/vector_tools/integrate_difference_03.cc
tests/vector_tools/integrate_difference_04.cc
tests/vector_tools/integrate_difference_04_hp.cc
tests/vector_tools/integrate_difference_04_hp_02.cc

index 5a8f8e643c711e2dc4e5c3383120420b31e01044..c8b90cb22ae51655fec4536e27c7ab43f36405f9 100644 (file)
@@ -279,7 +279,7 @@ namespace Step11
                                         system_matrix);
     VectorTools::create_right_hand_side (mapping, dof_handler,
                                          QGauss<dim>(gauss_degree),
-                                         ConstantFunction<dim>(-2),
+                                         Functions::ConstantFunction<dim>(-2),
                                          system_rhs);
     // That's quite simple, right?
     //
@@ -314,7 +314,7 @@ namespace Step11
     Vector<double> tmp (system_rhs.size());
     VectorTools::create_boundary_right_hand_side (mapping, dof_handler,
                                                   QGauss<dim-1>(gauss_degree),
-                                                  ConstantFunction<dim>(1),
+                                                  Functions::ConstantFunction<dim>(1),
                                                   tmp);
     // Then add the contributions from the boundary to those from the interior
     // of the domain:
@@ -361,7 +361,7 @@ namespace Step11
     Vector<float> norm_per_cell (triangulation.n_active_cells());
     VectorTools::integrate_difference (mapping, dof_handler,
                                        solution,
-                                       ZeroFunction<dim>(),
+                                       Functions::ZeroFunction<dim>(),
                                        norm_per_cell,
                                        QGauss<dim>(gauss_degree+1),
                                        VectorTools::H1_seminorm);
index d98966313f962ed53b56d45e33ab83d90cddbace..2dff2148d0cc8b4a6cb59d2a1648df84e0b9c5f3 100644 (file)
@@ -1288,15 +1288,15 @@ namespace Step14
       // We need a class to denote the boundary values of the problem. In this
       // case, this is simple: it's the zero function, so don't even declare a
       // class, just a typedef:
-      typedef ZeroFunction<dim> BoundaryValues;
+      typedef Functions::ZeroFunction<dim> BoundaryValues;
 
       // Second, a class that denotes the right hand side. Since they are
       // constant, just subclass the corresponding class of the library and be
       // done:
-      class RightHandSide : public ConstantFunction<dim>
+      class RightHandSide : public Functions::ConstantFunction<dim>
       {
       public:
-        RightHandSide () : ConstantFunction<dim> (1.) {}
+        RightHandSide () : Functions::ConstantFunction<dim> (1.) {}
       };
 
       // Finally a function to generate the coarse grid. This is somewhat more
@@ -1756,11 +1756,11 @@ namespace Step14
       const SmartPointer<const DualFunctional::DualFunctionalBase<dim> > dual_functional;
       virtual void assemble_rhs (Vector<double> &rhs) const;
 
-      static const ZeroFunction<dim> boundary_values;
+      static const Functions::ZeroFunction<dim> boundary_values;
     };
 
     template <int dim>
-    const ZeroFunction<dim> DualSolver<dim>::boundary_values;
+    const Functions::ZeroFunction<dim> DualSolver<dim>::boundary_values;
 
     template <int dim>
     DualSolver<dim>::
index 408e3a3ca1015c7f041cd9a95628d04b1aa30e6a..fca0337842721b97f472c13e08520f8d8152d1ff 100644 (file)
@@ -334,7 +334,7 @@ namespace Step15
     std::map<types::global_dof_index,double> boundary_values;
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim>(),
+                                              Functions::ZeroFunction<dim>(),
                                               boundary_values);
     MatrixTools::apply_boundary_values (boundary_values,
                                         system_matrix,
index 06151f45b434ea68559064b1fd1875ed2d55d17b..4d5a7a33b7ff02b1ca08eea45ff3e02ac527f1b6 100644 (file)
@@ -283,7 +283,7 @@ namespace Step16
 
     std::set<types::boundary_id>         dirichlet_boundary_ids;
     typename FunctionMap<dim>::type      dirichlet_boundary_functions;
-    ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+    Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
     dirichlet_boundary_ids.insert(0);
     dirichlet_boundary_functions[0] = &homogeneous_dirichlet_bc;
     VectorTools::interpolate_boundary_values (static_cast<const DoFHandler<dim>&>(dof_handler),
index e5c5968b685e4e82db99e7e75627e75d2440a5f4..becb5ba14104aaf1e20f16a67ebd1af3a2104c79 100644 (file)
@@ -480,7 +480,7 @@ namespace Step17
     std::vector<double>     lambda_values (n_q_points);
     std::vector<double>     mu_values (n_q_points);
 
-    ConstantFunction<dim> lambda(1.), mu(1.);
+    Functions::ConstantFunction<dim> lambda(1.), mu(1.);
 
     RightHandSide<dim>      right_hand_side;
     std::vector<Vector<double> > rhs_values (n_q_points,
@@ -616,7 +616,7 @@ namespace Step17
     std::map<types::global_dof_index,double> boundary_values;
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim>(dim),
+                                              Functions::ZeroFunction<dim>(dim),
                                               boundary_values);
     MatrixTools::apply_boundary_values (boundary_values,
                                         system_matrix,
index f0e9af6ffee4d2ddeb00abac7653871c09d4d9ed..5e0f08ff7416b6810f51c5f87b22759cb3f15d28 100644 (file)
@@ -639,7 +639,7 @@ namespace Step18
   // For the purposes of this program, we choose a simple form of boundary
   // displacement: we displace the top boundary with constant velocity
   // downwards. The rest of the boundary is either going to be fixed (and is
-  // then described using an object of type <code>ZeroFunction</code>) or free
+  // then described using an object of type <code>Functions::ZeroFunction</code>) or free
   // (Neumann-type, in which case nothing special has to be done).  The
   // implementation of the class describing the constant downward motion
   // should then be obvious using the knowledge we gained through all the
@@ -1139,7 +1139,7 @@ namespace Step18
     VectorTools::
     interpolate_boundary_values (dof_handler,
                                  0,
-                                 ZeroFunction<dim> (dim),
+                                 Functions::ZeroFunction<dim> (dim),
                                  boundary_values);
     VectorTools::
     interpolate_boundary_values (dof_handler,
index 59f528886dd1076d099885a5bdb9f7a56af37032..15e513e0fc4e813b2e8736db541ab88d67c4fe74 100644 (file)
@@ -223,7 +223,7 @@ namespace Step21
   //
   // We therefore simply create a function that returns zero in all
   // components. We do that by simply forward every function to the
-  // ZeroFunction class. Why not use that right away in the places of this
+  // Functions::ZeroFunction class. Why not use that right away in the places of this
   // program where we presently use the <code>InitialValues</code> class?
   // Because this way it is simpler to later go back and choose a different
   // function for initial values.
@@ -247,7 +247,7 @@ namespace Step21
   InitialValues<dim>::value (const Point<dim>  &p,
                              const unsigned int component) const
   {
-    return ZeroFunction<dim>(dim+2).value (p, component);
+    return Functions::ZeroFunction<dim>(dim+2).value (p, component);
   }
 
 
@@ -256,7 +256,7 @@ namespace Step21
   InitialValues<dim>::vector_value (const Point<dim> &p,
                                     Vector<double>   &values) const
   {
-    ZeroFunction<dim>(dim+2).vector_value (p, values);
+    Functions::ZeroFunction<dim>(dim+2).vector_value (p, values);
   }
 
 
index 41a9d30436323eeec5fd7f46b6c9415035df4a0a..ef6c9c65985a56096dc0b7c9f4299e056bf846ee 100644 (file)
@@ -463,7 +463,7 @@ start_time_iteration:
 
 
     VectorTools::interpolate(dof_handler,
-                             ZeroFunction<dim>(),
+                             Functions::ZeroFunction<dim>(),
                              old_solution);
     solution = old_solution;
 
index 43cf9f97dc6c90f6ca4aa340145a6b8f7f136663..b7204ce68193aa445fc00d770597946074d15d1f 100644 (file)
@@ -274,7 +274,7 @@ namespace Step27
                                              constraints);
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim>(),
+                                              Functions::ZeroFunction<dim>(),
                                               constraints);
     constraints.close ();
 
index e00ec968d91e1e9afaa83a737aaf2e1f51a7e7e9..1196de9859fe9e88df8e83f2a90e04899e703240 100644 (file)
@@ -644,7 +644,7 @@ namespace Step28
     for (unsigned int i=0; i<dim; ++i)
       VectorTools::interpolate_boundary_values (dof_handler,
                                                 2*i+1,
-                                                ZeroFunction<dim>(),
+                                                Functions::ZeroFunction<dim>(),
                                                 boundary_values);
   }
 
@@ -1687,7 +1687,7 @@ namespace Step28
           {
             for (unsigned int group=0; group<parameters.n_groups; ++group)
               {
-                energy_groups[group]->assemble_ingroup_rhs (ZeroFunction<dim>());
+                energy_groups[group]->assemble_ingroup_rhs (Functions::ZeroFunction<dim>());
 
                 for (unsigned int bgroup=0; bgroup<parameters.n_groups; ++bgroup)
                   energy_groups[group]->assemble_cross_group_rhs (*energy_groups[bgroup]);
index 7be6aeb2a2a4dc05ab7e3fd56812b30acce5ebc8..0537305350119677a6319dc1db06f3fa9f50a826 100644 (file)
@@ -504,7 +504,7 @@ void Step3::assemble_system ()
   // the boundary.
   //
   // The function describing the boundary values is an object of type Function
-  // or of a derived class. One of the derived classes is ZeroFunction, which
+  // or of a derived class. One of the derived classes is Functions::ZeroFunction, which
   // describes (not unexpectedly) a function which is zero everywhere. We
   // create such an object in-place and pass it to the
   // VectorTools::interpolate_boundary_values() function.
@@ -517,7 +517,7 @@ void Step3::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<2>(),
+                                            Functions::ZeroFunction<2>(),
                                             boundary_values);
   // Now that we got the list of boundary DoFs and their respective boundary
   // values, let's use them to modify the system of equations
index 0d3cf79d80615a0ec1f0a11479bd58f669c2c7b5..a8d6c7019b264de90aedf7fd8b9a734d55aafcb4 100644 (file)
@@ -2058,7 +2058,7 @@ namespace Step32
       FEValuesExtractors::Vector velocity_components(0);
       VectorTools::interpolate_boundary_values (stokes_dof_handler,
                                                 0,
-                                                ZeroFunction<dim>(dim+1),
+                                                Functions::ZeroFunction<dim>(dim+1),
                                                 stokes_constraints,
                                                 stokes_fe.component_mask(velocity_components));
 
index e4885ca8249dacd7f8b8c37360f75a0b2e58f6d5..7599883b32e375a0e18f201f23528c23af88caba 100644 (file)
@@ -776,9 +776,9 @@ namespace Step35
       {
         vel_exact.set_time (t_0);
         vel_exact.set_component(d);
-        VectorTools::interpolate (dof_handler_velocity, ZeroFunction<dim>(), u_n_minus_1[d]);
+        VectorTools::interpolate (dof_handler_velocity, Functions::ZeroFunction<dim>(), u_n_minus_1[d]);
         vel_exact.advance_time (dt);
-        VectorTools::interpolate (dof_handler_velocity, ZeroFunction<dim>(), u_n[d]);
+        VectorTools::interpolate (dof_handler_velocity, Functions::ZeroFunction<dim>(), u_n[d]);
       }
   }
 
@@ -1047,7 +1047,7 @@ namespace Step35
                 VectorTools::
                 interpolate_boundary_values (dof_handler_velocity,
                                              *boundaries,
-                                             ZeroFunction<dim>(),
+                                             Functions::ZeroFunction<dim>(),
                                              boundary_values);
                 break;
               case 2:
@@ -1062,14 +1062,14 @@ namespace Step35
                   VectorTools::
                   interpolate_boundary_values (dof_handler_velocity,
                                                *boundaries,
-                                               ZeroFunction<dim>(),
+                                               Functions::ZeroFunction<dim>(),
                                                boundary_values);
                 break;
               case 4:
                 VectorTools::
                 interpolate_boundary_values (dof_handler_velocity,
                                              *boundaries,
-                                             ZeroFunction<dim>(),
+                                             Functions::ZeroFunction<dim>(),
                                              boundary_values);
                 break;
               default:
@@ -1215,7 +1215,7 @@ namespace Step35
     static std::map<types::global_dof_index, double> bval;
     if (reinit_prec)
       VectorTools::interpolate_boundary_values (dof_handler_pressure, 3,
-                                                ZeroFunction<dim>(), bval);
+                                                Functions::ZeroFunction<dim>(), bval);
 
     MatrixTools::apply_boundary_values (bval, pres_iterative, phi_n, pres_tmp);
 
index d0547ac1ffdc078bc9c528e8de5542869f5cc960..6033e0f9f93ef389672c30f44110df38c9e17be2 100644 (file)
@@ -827,7 +827,7 @@ namespace Step37
                                             constraints);
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim>(),
+                                              Functions::ZeroFunction<dim>(),
                                               constraints);
     constraints.close();
     setup_time += time.wall_time();
index f50a1499ed793af413ddbcd9f890cd4f0a4a39e8..ba04643dd5f495abcb9d390f42a05715600a8ac1 100644 (file)
@@ -118,7 +118,7 @@ private:
 // simply be omitted for scalar functions.
 //
 // Function objects are used in lots of places in the library (for example, in
-// step-2 we used a ZeroFunction instance as an argument to
+// step-2 we used a Functions::ZeroFunction instance as an argument to
 // VectorTools::interpolate_boundary_values) and this is the first step where
 // we define a new class that inherits from Function. Since we only ever call
 // Function::value, we could get away with just a plain function (and this is
@@ -415,7 +415,7 @@ void Step4<dim>::assemble_system ()
 
   // As the final step in this function, we wanted to have non-homogeneous
   // boundary values in this example, unlike the one before. This is a simple
-  // task, we only have to replace the ZeroFunction used there by an object of
+  // task, we only have to replace the Functions::ZeroFunction used there by an object of
   // the class which describes the boundary values we would like to use
   // (i.e. the <code>BoundaryValues</code> class declared above):
   std::map<types::global_dof_index,double> boundary_values;
index 6ca481b1dac3bfe5d96c4970e2e520281238498a..d4ac20a7a4db078a741b722767e654e012512f5c 100644 (file)
@@ -297,7 +297,7 @@ namespace Step40
     DoFTools::make_hanging_node_constraints (dof_handler, constraints);
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim>(),
+                                              Functions::ZeroFunction<dim>(),
                                               constraints);
     constraints.close ();
 
index 83ca47c2ce9ce4618143997856e9cc406b69ebd1..35d56be765b67b657fed15d38f6800911d17530b 100644 (file)
@@ -2495,13 +2495,13 @@ namespace Step44
       if (apply_dirichlet_bc == true)
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(x_displacement));
       else
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(x_displacement));
     }
@@ -2511,13 +2511,13 @@ namespace Step44
       if (apply_dirichlet_bc == true)
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(y_displacement));
       else
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(y_displacement));
     }
@@ -2532,7 +2532,7 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -2540,7 +2540,7 @@ namespace Step44
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -2552,13 +2552,13 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      fe.component_mask(z_displacement));
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      fe.component_mask(z_displacement));
         }
@@ -2569,7 +2569,7 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -2577,7 +2577,7 @@ namespace Step44
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -2592,13 +2592,13 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
         }
@@ -2608,13 +2608,13 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
         }
index d5f1602430adcf24383d1ea7c3e0a5a1a8e7a7de..7ff42afb65073b749cd89a9dc87439938529421e 100644 (file)
@@ -399,7 +399,7 @@ namespace Step46
       const FEValuesExtractors::Vector displacements(dim+1);
       VectorTools::interpolate_boundary_values (dof_handler,
                                                 0,
-                                                ZeroFunction<dim>(dim+1+dim),
+                                                Functions::ZeroFunction<dim>(dim+1+dim),
                                                 constraints,
                                                 fe_collection.component_mask(displacements));
     }
index 62712a35361648b73316f69d774a9e419c7ce451..d86bf9085c0155a63c5b6caa456896a450417374 100644 (file)
@@ -432,7 +432,7 @@ namespace Step47
     std::map<types::global_dof_index,double> boundary_values;
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim>(2),
+                                              Functions::ZeroFunction<dim>(2),
                                               boundary_values);
     MatrixTools::apply_boundary_values (boundary_values,
                                         system_matrix,
index 433f7e7fb51516d5ad3d36435e8bff98588dca45..b30a9e79aa9dfebd75eccebc2098ce97151cddb5 100644 (file)
@@ -462,7 +462,7 @@ namespace Step48
     solution.update_ghost_values();
     VectorTools::integrate_difference (dof_handler,
                                        solution,
-                                       ZeroFunction<dim>(),
+                                       Functions::ZeroFunction<dim>(),
                                        norm_per_cell,
                                        QGauss<dim>(fe_degree+1),
                                        VectorTools::L2_norm);
index dcb9c3a513e336f830a560a4b000466e37bf947f..30c0f5164c62f2947f63f14982f432f87c553779 100644 (file)
@@ -235,7 +235,7 @@ void Step5<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index daedd3b567a251d6a65803faf572f7584b4c82cd..f160f778416899bf333cab97301a48cad04cf26e 100644 (file)
@@ -287,7 +287,7 @@ namespace Step50
 
     std::set<types::boundary_id>         dirichlet_boundary_ids;
     typename FunctionMap<dim>::type      dirichlet_boundary;
-    ConstantFunction<dim>                    homogeneous_dirichlet_bc (1.0);
+    Functions::ConstantFunction<dim>                    homogeneous_dirichlet_bc (1.0);
     dirichlet_boundary_ids.insert(0);
     dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
     VectorTools::interpolate_boundary_values (mg_dof_handler,
index 7edd1df51de1853b40b4a6bb978846695eca62af..3ad784e18a143ba261eac35ae0c33af8425d7f9e 100644 (file)
@@ -166,7 +166,7 @@ namespace Step52
   {
     dof_handler.distribute_dofs(fe);
 
-    VectorTools::interpolate_boundary_values(dof_handler,1,ZeroFunction<2>(),constraint_matrix);
+    VectorTools::interpolate_boundary_values(dof_handler,1,Functions::ZeroFunction<2>(),constraint_matrix);
     constraint_matrix.close();
 
     DynamicSparsityPattern dsp(dof_handler.n_dofs());
index ed130bbbd1eb6a7343c65e7a2884b65a907f025a..a1d7adfef993f8a5713f2b6147c0ec1a620caca7 100644 (file)
@@ -337,7 +337,7 @@ namespace Step57
       DoFTools::make_hanging_node_constraints(dof_handler, zero_constraints);
       VectorTools::interpolate_boundary_values(dof_handler,
                                                0,
-                                               ZeroFunction<dim>(dim+1),
+                                               Functions::ZeroFunction<dim>(dim+1),
                                                zero_constraints,
                                                fe.component_mask(velocities));
     }
index db0e868c7b2d4c69fb5588a6430c15656ae3a360..81064eb73fed7c3d836178f0bd6f27c62d420b54 100644 (file)
@@ -268,7 +268,7 @@ void Step6<dim>::setup_system ()
                                            constraints);
 
 
-  // Now we are ready to interpolate the ZeroFunction to our boundary with
+  // Now we are ready to interpolate the Functions::ZeroFunction to our boundary with
   // indicator 0 (the whole boundary) and store the resulting constraints in
   // our <code>constraints</code> object. Note that we do not to apply the
   // boundary conditions after assembly, like we did in earlier steps.  As
@@ -280,7 +280,7 @@ void Step6<dim>::setup_system ()
   // values into the ContraintMatrix after the hanging node constraints.
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             constraints);
 
 
index f67ed3718b6e5ad4399d04f78a8867d1c3637efd..526c1d60c635e8f3d5247f9fb41af6dd64cafd77 100644 (file)
@@ -297,7 +297,7 @@ namespace Step8
     // value 1.0. Although we could omit the respective factors in the
     // assemblage of the matrix, we use them here for purpose of
     // demonstration.
-    ConstantFunction<dim> lambda(1.), mu(1.);
+    Functions::ConstantFunction<dim> lambda(1.), mu(1.);
 
     // Like the two constant functions above, we will call the function
     // right_hand_side just once per cell to make things simpler.
@@ -434,17 +434,17 @@ namespace Step8
 
     // The interpolation of the boundary values needs a small modification:
     // since the solution function is vector-valued, so need to be the
-    // boundary values. The <code>ZeroFunction</code> constructor accepts a
+    // boundary values. The <code>Functions::ZeroFunction</code> constructor accepts a
     // parameter that tells it that it shall represent a vector valued,
     // constant zero function with that many components. By default, this
-    // parameter is equal to one, in which case the <code>ZeroFunction</code>
+    // parameter is equal to one, in which case the <code>Functions::ZeroFunction</code>
     // object would represent a scalar function. Since the solution vector has
     // <code>dim</code> components, we need to pass <code>dim</code> as number
     // of components to the zero function as well.
     std::map<types::global_dof_index,double> boundary_values;
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim>(dim),
+                                              Functions::ZeroFunction<dim>(dim),
                                               boundary_values);
     MatrixTools::apply_boundary_values (boundary_values,
                                         system_matrix,
index 39e7ef2b2a200e2ac9e39c230d4264cbdc9b0fee..4c047bac78f8fc609a3e7f34be2eed2702a9a3db 100644 (file)
@@ -190,7 +190,7 @@ void test ()
   dealii::DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
   dealii::VectorTools::interpolate_boundary_values (dof_handler,
                                                     0,
-                                                    dealii::ZeroFunction<dim> (),
+                                                    dealii::Functions::ZeroFunction<dim> (),
                                                     constraints);
   constraints.close ();
 
index 46c3ef4b45d6bb8c5626c6a66de246f221f556ba..88f603484a1726afc421f8b677be65ac0be8c751 100644 (file)
@@ -168,7 +168,7 @@ void test ()
   DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim> (),
+                                            Functions::ZeroFunction<dim> (),
                                             constraints);
   constraints.close ();
 
index 0630a2a4d27ade36cedea0800a3c6810e278c969..242db31a91fb428159fc9a774e4100b87e86b4fd 100644 (file)
@@ -144,7 +144,7 @@ namespace Step36
 
     std::vector<types::global_dof_index> local_dof_indices (dofs_per_cell);
 
-    ZeroFunction<dim> potential;
+    Functions::ZeroFunction<dim> potential;
 
     std::vector<double> potential_values (n_q_points);
 
index cc300622b8b154cafb05fb1a60c4ffefb9cdb507..bc9b92ef13b01c201a355b67c7f94cbaaa653548 100644 (file)
@@ -138,7 +138,7 @@ namespace Step36
 
     std::vector<types::global_dof_index> local_dof_indices (dofs_per_cell);
 
-    ZeroFunction<dim> potential;
+    Functions::ZeroFunction<dim> potential;
 
     std::vector<double> potential_values (n_q_points);
 
index d0dde054db59fc4246dddc913813a688f1b80995..c78e4062bfd16bc838cc108d7ae1a22845a0f463 100644 (file)
@@ -192,7 +192,7 @@ void test ()
   dealii::DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
   dealii::VectorTools::interpolate_boundary_values (dof_handler,
                                                     0,
-                                                    dealii::ZeroFunction<dim> (),
+                                                    dealii::Functions::ZeroFunction<dim> (),
                                                     constraints);
   constraints.close ();
 
index 9795269805c74506b82ce583e43e770e1e1dacc7..0b6a00fdad1c06c42ac5c63d4e46820b3d4520dc 100644 (file)
@@ -85,7 +85,7 @@ void test ()
   DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim> (),
+                                            Functions::ZeroFunction<dim> (),
                                             constraints);
   constraints.close ();
 
index 0dc03f2f2c7a68a7f439dc1f14be997fb00b9edc..dcc6582c56d8aafcda83a5d73e5d84ed2c315f02 100644 (file)
@@ -85,7 +85,7 @@ void test ()
   DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim> (),
+                                            Functions::ZeroFunction<dim> (),
                                             constraints);
   constraints.close ();
 
index f0d994dd9a1b9b83fc3455bd00f9951f722e9a38..5e9b4ac9352c7e29d4a91070a0447e547dcf3ca7 100644 (file)
@@ -85,7 +85,7 @@ void test ()
   DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim> (),
+                                            Functions::ZeroFunction<dim> (),
                                             constraints);
   constraints.close ();
 
index 1860bac98e0af66b9de9a5f427cbe92e7007f730..694faf5978a645aa6cdd1646787a70b3b68dfe72 100644 (file)
@@ -170,7 +170,7 @@ void test ()
   DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim> (),
+                                            Functions::ZeroFunction<dim> (),
                                             constraints);
   constraints.close ();
 
index 536ef2c199e94d99a5d7504712566ec42941199e..db1662a8b2b4ff10b8bc9e40769129b5685e1534 100644 (file)
@@ -27,7 +27,7 @@
 #define LOG_FILE "output"
 #define NUMBER double
 
-#define TESTEE ConstantFunction
+#define TESTEE Functions::ConstantFunction
 
 // Test a given TESTEE object f on n_points points
 template <int dim, typename Number>
index 7ad5d787233aa8f736d0f7b9da007474b8b6e463..281fdba3786f3222aaf5a5dcde8d702ddb6e0d46 100644 (file)
@@ -181,7 +181,7 @@ void FindBug<dim>::dirichlet_conditions ()
   // Here comes the crucial call....
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim> (2),
+                                            Functions::ZeroFunction<dim> (2),
                                             dirichlet_dofs,
                                             component_mask);
 
index 7da022161b340c4f7760fff389e6a76e8eada715..c4d15e3e38fb806f25f0236a354b2ab9afff355b 100644 (file)
@@ -84,7 +84,7 @@ void test ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ConstantFunction<dim>(1.),
+                                            Functions::ConstantFunction<dim>(1.),
                                             boundary_values);
 
   std::vector<types::global_dof_index> local_dofs (fe.dofs_per_cell);
index fa4c2e86949706eb9842b66cebcb7a3953ce1a5f..36dad022ee1d3b4615702e4f7b5b19a6206535cf 100644 (file)
@@ -84,7 +84,7 @@ void test ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ConstantFunction<dim>(1.),
+                                            Functions::ConstantFunction<dim>(1.),
                                             boundary_values);
 
   std::vector<types::global_dof_index> local_dofs (fe.dofs_per_cell);
index 8a149400aab7175f52fda4d72c307384bc5c5eed..64caea69a03b331cf504c67133ff74f6ee0388a1 100644 (file)
@@ -189,7 +189,7 @@ void TestFEQConstraints<dim>::test ()
   // First error check. Simply the interpolation error of the used FE-Space
   // on the given triangulation.
   VectorTools::integrate_difference (dof_handler, solution,
-                                     ZeroFunction<dim>(1),
+                                     Functions::ZeroFunction<dim>(1),
                                      norm_per_cell,
                                      quadrature,
                                      VectorTools::L2_norm);
index c0dd828f8c1cc924a9172ef35c735979a4c8b14a..f923afc7eec94c78eee53f757262c66ef5bd58a6 100644 (file)
@@ -647,7 +647,7 @@ void LaplaceProblem<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index f295b0f457eb394550e21b9621669c14f386d8ff..21763d77b4d34650b3a0745d9d063d47f47f0c63 100644 (file)
@@ -84,7 +84,7 @@ void test ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ConstantFunction<dim>(1.),
+                                            Functions::ConstantFunction<dim>(1.),
                                             boundary_values);
   ConstraintMatrix constraints;
   constraints.clear();
index 8d8e5bd1a82cb0a60e6b01caef210fbbd0a61b74..edb024cf9c3123eb61afd230123ab961f9e0344c 100644 (file)
@@ -93,7 +93,7 @@ void test ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             1,
-                                            ConstantFunction<dim>(1.),
+                                            Functions::ConstantFunction<dim>(1.),
                                             boundary_values);
   ConstraintMatrix constraints;
   constraints.clear();
index 7aa937b0d516cd2ca524eea1381943bb5852acca..70a061533ccfd18ca1aa9a8dad3c4b08e9ff2f19 100644 (file)
@@ -149,7 +149,7 @@ check ()
           deallog << difference(0) << std::endl;
           Assert (difference(0) < 2e-4, ExcInternalError());
 
-          VectorTools::point_difference (dof, v, ZeroFunction<dim>(),
+          VectorTools::point_difference (dof, v, Functions::ZeroFunction<dim>(),
                                          difference, p[i]);
           deallog << difference(0) << std::endl;
           Assert (std::abs(-difference(0) - function.value(p[i])) < 2e-4,
index b9284075f28ec67eac8b08fcf53155d0e2bb2965..22cbfd1113ae6677ac5667804b3e05b8b4b1f89c 100644 (file)
@@ -154,7 +154,7 @@ check ()
           deallog << difference(0) << std::endl;
           Assert (difference(0) < 2e-4, ExcInternalError());
 
-          VectorTools::point_difference (mapping, dof, v, ZeroFunction<dim>(),
+          VectorTools::point_difference (mapping, dof, v, Functions::ZeroFunction<dim>(),
                                          difference, p[i]);
           deallog << difference(0) << std::endl;
           Assert (std::abs(-difference(0) - function.value(p[i])) < 2e-4,
index c8ec3d0e9f640634bde6f382473bb178b967a2ae..09910c398041f9fe8aeaf0798122e0a0e0faa4b5 100644 (file)
@@ -140,12 +140,12 @@ void LaplaceProblem<dim>::assemble_and_solve ()
                                       system_matrix);
   VectorTools::create_right_hand_side (mapping, dof_handler,
                                        QGauss<dim>(gauss_degree),
-                                       ConstantFunction<dim>(-2),
+                                       Functions::ConstantFunction<dim>(-2),
                                        system_rhs);
   Vector<double> tmp (system_rhs.size());
   VectorTools::create_boundary_right_hand_side (mapping, dof_handler,
                                                 QGauss<dim-1>(gauss_degree),
-                                                ConstantFunction<dim>(1),
+                                                Functions::ConstantFunction<dim>(1),
                                                 tmp);
   system_rhs += tmp;
 
@@ -158,7 +158,7 @@ void LaplaceProblem<dim>::assemble_and_solve ()
   Vector<float> norm_per_cell (triangulation.n_active_cells());
   VectorTools::integrate_difference (mapping, dof_handler,
                                      solution,
-                                     ZeroFunction<dim>(),
+                                     Functions::ZeroFunction<dim>(),
                                      norm_per_cell,
                                      QGauss<dim>(gauss_degree+1),
                                      VectorTools::H1_seminorm);
index d0734f00a9d114c5e691acc12a81540c44251f15..998870529bd7141889429de6572ccf5e4716c66c 100644 (file)
@@ -1012,12 +1012,12 @@ namespace Data
   template <int dim>
   struct Exercise_2_3
   {
-    typedef ZeroFunction<dim> BoundaryValues;
+    typedef Functions::ZeroFunction<dim> BoundaryValues;
 
-    class RightHandSide : public ConstantFunction<dim>
+    class RightHandSide : public Functions::ConstantFunction<dim>
     {
     public:
-      RightHandSide () : ConstantFunction<dim> (1.) {}
+      RightHandSide () : Functions::ConstantFunction<dim> (1.) {}
     };
 
     static
@@ -1291,13 +1291,13 @@ namespace LaplaceSolver
     const SmartPointer<const DualFunctional::DualFunctionalBase<dim> > dual_functional;
     virtual void assemble_rhs (Vector<double> &rhs) const;
 
-    static const ZeroFunction<dim> boundary_values;
+    static const Functions::ZeroFunction<dim> boundary_values;
 
     friend class WeightedResidual<dim>;
   };
 
   template <int dim>
-  const ZeroFunction<dim> DualSolver<dim>::boundary_values;
+  const Functions::ZeroFunction<dim> DualSolver<dim>::boundary_values;
 
   template <int dim>
   DualSolver<dim>::
index 4bc5654428e6bda9dbab2b3127cc8dd318e76eeb..1136e85740ffb840ef8d15d7adbb7784a8cda285 100644 (file)
@@ -267,12 +267,12 @@ void MinimizationProblem<dim>::assemble_step ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   if (dim == 1)
     VectorTools::interpolate_boundary_values (dof_handler,
                                               1,
-                                              ZeroFunction<dim>(),
+                                              Functions::ZeroFunction<dim>(),
                                               boundary_values);
   Vector<double> dummy (residual.size());
   MatrixTools::apply_boundary_values (boundary_values,
index edd9f2e518ce125601d3e0d9f19dfef480b96756..db00d0e1ba78117b07f8c474a826f24825c1fd34 100644 (file)
@@ -168,7 +168,7 @@ void LaplaceProblem::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<2>(),
+                                            Functions::ZeroFunction<2>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index a4018727349f55a7797cd2f45349ec3c5f36bdc7..9256a783c0425d10f2c98e66885411cd065b74bb 100644 (file)
@@ -225,7 +225,7 @@ void LaplaceProblem<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 36cad476023646dc70a08eb16e617e8802dfaf6b..716c43968c2c89e2a6aa3b12c691b7d6ee74a7aa 100644 (file)
@@ -254,7 +254,7 @@ void LaplaceProblem<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 0af5985040f6f70f7d6add55ce2c613f9dd31164..41e5cb0575b13ee2983f9a67a770925946f82397 100644 (file)
@@ -254,7 +254,7 @@ void LaplaceProblem<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index bbbb31707e2bdb352112e19dd5d764a9b42a32a8..c5b83189a8c7b991e9a14ec6238495bb5c4c21d0 100644 (file)
@@ -251,7 +251,7 @@ void LaplaceProblem<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 1c109ecaa6bbc9af8fb253c3297b38e92996b318..b8a1496b7222a42c974b6838d9fce0cee19185b6 100644 (file)
@@ -213,7 +213,7 @@ void ElasticProblem<dim>::assemble_system ()
   std::vector<double>     lambda_values (n_q_points);
   std::vector<double>     mu_values (n_q_points);
 
-  ConstantFunction<dim> lambda(1.), mu(1.);
+  Functions::ConstantFunction<dim> lambda(1.), mu(1.);
 
   RightHandSide<dim>      right_hand_side;
   std::vector<Vector<double> > rhs_values (n_q_points,
@@ -301,7 +301,7 @@ void ElasticProblem<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(dim),
+                                            Functions::ZeroFunction<dim>(dim),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 98334db2c63400d5c05c8b624bf9685c586c319b..ddc7fb25076cc260d5a18a93675bff3dfce2caf0 100644 (file)
@@ -64,7 +64,7 @@ void test(std::string filename, unsigned int n)
   for (unsigned int i=0; i <real_one.size(); ++i)
     real_one(i) = 1.;
 
-  ConstantFunction<spacedim> constant(1.);
+  Functions::ConstantFunction<spacedim> constant(1.);
   VectorTools::interpolate(dof_handler, constant, interpolated_one);
 
   real_one.add(-1, interpolated_one);
index c9a36c2aa77d344c2e43dfac29d90f923e5794ef..6667cc415e4b1dd82bfa28ab770099e5bad90788 100644 (file)
@@ -53,7 +53,7 @@ check_this (const DoFHandler<dim> &dof_handler)
       std::string::npos)
     return;
 
-  ConstantFunction<dim> test_func (1, dof_handler.get_fe().n_components ());
+  Functions::ConstantFunction<dim> test_func (1, dof_handler.get_fe().n_components ());
 
   // don't run this test if hanging
   // nodes are not implemented
index 5b68af0e35fb732018918aca7dde7a42a66ddd49..ee2ea36d355a34be137f70dbdc089d39ea982466 100644 (file)
@@ -74,7 +74,7 @@ void test ()
       cell->set_material_id(cell->index() % 128);
       if (functions.find(cell->index() % 128) == functions.end())
         functions[cell->index() % 128]
-          = new ConstantFunction<dim>(cell->index() % 128);
+          = new Functions::ConstantFunction<dim>(cell->index() % 128);
     }
 
   for (unsigned int p=1; p<7-dim; ++p)
index 56ec591d76eea17da3711e574f956b7343188957..dfbda9431a45572486dd650cd97074e7b7aca31e 100644 (file)
@@ -175,7 +175,7 @@ void Step6<dim>::setup_system ()
 
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             constraints);
 
 
index 8e0b1aee47a89abeec3e6178235ac10df9ef9099..6a86a01fef114fb3c6f6bcd62834835c59e6159d 100644 (file)
@@ -256,7 +256,7 @@ void LaplaceProblem<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 3f31773aabc4b4fc50f5683e83aa2a6bbb1c3b34..961d016f608cab34071e7a34119f30ec5bb95607 100644 (file)
@@ -1011,12 +1011,12 @@ namespace Data
   template <int dim>
   struct Exercise_2_3
   {
-    typedef ZeroFunction<dim> BoundaryValues;
+    typedef Functions::ZeroFunction<dim> BoundaryValues;
 
-    class RightHandSide : public ConstantFunction<dim>
+    class RightHandSide : public Functions::ConstantFunction<dim>
     {
     public:
-      RightHandSide () : ConstantFunction<dim> (1.) {}
+      RightHandSide () : Functions::ConstantFunction<dim> (1.) {}
     };
 
     static
@@ -1290,13 +1290,13 @@ namespace LaplaceSolver
     const SmartPointer<const DualFunctional::DualFunctionalBase<dim> > dual_functional;
     virtual void assemble_rhs (Vector<double> &rhs) const;
 
-    static const ZeroFunction<dim> boundary_values;
+    static const Functions::ZeroFunction<dim> boundary_values;
 
     friend class WeightedResidual<dim>;
   };
 
   template <int dim>
-  const ZeroFunction<dim> DualSolver<dim>::boundary_values;
+  const Functions::ZeroFunction<dim> DualSolver<dim>::boundary_values;
 
   template <int dim>
   DualSolver<dim>::
index 633a6acab8cc6299deffb774f12cd7bfd8eaf8cd..669b2ebdff281286877f65d3ffc75381863f693d 100644 (file)
@@ -269,12 +269,12 @@ void MinimizationProblem<dim>::assemble_step ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   if (dim == 1)
     VectorTools::interpolate_boundary_values (dof_handler,
                                               1,
-                                              ZeroFunction<dim>(),
+                                              Functions::ZeroFunction<dim>(),
                                               boundary_values);
   Vector<double> dummy (residual.size());
   MatrixTools::apply_boundary_values (boundary_values,
index c1fcabf97d3896b982f452570ce208cdbc93f38a..ec0a909264ed469dc5687512c1d92301d8a62920 100644 (file)
@@ -43,7 +43,7 @@ check_this (const DoFHandler<dim> &dof_handler)
       std::string::npos)
     return;
 
-  ConstantFunction<dim> test_func (1, dof_handler.get_fe().n_components ());
+  Functions::ConstantFunction<dim> test_func (1, dof_handler.get_fe().n_components ());
 
   // don't run this test if hanging
   // nodes are not implemented
index 32fb3a7f786c9cae44d7d7aa3bd2bda6350f5f65..3f7026c71b217977f1d9242f768070ce1f20b2bd 100644 (file)
@@ -628,7 +628,7 @@ int main (int /*argc*/, char **/*argv*/)
   hn_constraints.close ();
   MappingQGeneric<2> map_default(1);
   project (map_default, *dof_handler, hn_constraints,
-           QGauss<2> (6), ConstantFunction<2>(1., 2),
+           QGauss<2> (6), Functions::ConstantFunction<2>(1., 2),
            solution);
 
   EvaluateDerivative (dof_handler, solution);
index 51a93f5cb22bd84d5bfab0d2cfaa3751cb90f216..a38001f3373d2fbb2ad2c2abdf8f0693feef0f3d 100644 (file)
@@ -540,7 +540,7 @@ int main ()
   hn_constraints.close ();
   MappingQGeneric<3> map_default(1);
   project (map_default, dof_handler, hn_constraints,
-           QGauss<3> (6), ConstantFunction<3>(1., 3),
+           QGauss<3> (6), Functions::ConstantFunction<3>(1., 3),
            solution);
 
   EvaluateDerivative (dof_handler, solution);
index cc9f44f509e91cfc4ac22b8ce13135199e833810..d0762f74a4ca0f24b69a0a53e0e7329fd2c39d6e 100644 (file)
@@ -67,7 +67,7 @@ void test(FiniteElement<dim> &fe)
   DoFHandler<dim> dof_handler(tria);
   dof_handler.distribute_dofs (fe);
   ConstraintMatrix constraints;
-  ZeroFunction<dim> boundary_values(fe.n_components());
+  Functions::ZeroFunction<dim> boundary_values(fe.n_components());
   VectorTools::project_boundary_values_curl_conforming (dof_handler, 0, boundary_values, 0, constraints);
 }
 
index 49ce06f49818a261d1f0e70b256f64f7a1e670eb..997d43c2d44e92e29c3fe98b6e545f0d4040d0ab 100644 (file)
@@ -289,7 +289,7 @@ namespace Step36
     DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim> (1),
+                                              Functions::ZeroFunction<dim> (1),
                                               constraints);
     constraints.close ();
 
index ee46dfab912a1967b50b173642ee4d4e00a1d51b..4b1e6a52892fb781cd423f280c2ff6c9af0c6074 100644 (file)
@@ -293,7 +293,7 @@ namespace Step36
     DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim> (2),
+                                              Functions::ZeroFunction<dim> (2),
                                               constraints);
     constrain_pou_dofs();
     constraints.close ();
index 4439f5e6c3d45c203e57b36b4085471c5273e8d6..da8af22184263f45962a79d07816accb325c68d6 100644 (file)
@@ -112,4 +112,4 @@ int main()
   deallog.push("3d");
   test<3>();
   deallog.pop();
-}
\ No newline at end of file
+}
index 4fda98760019b6e890c464b61ae0d4fc851e417c..a8b9eb9bb7a7f62225ccad722356e291c16e08a3 100644 (file)
@@ -185,4 +185,4 @@ int main()
   deallog.push("3d");
   test<3>();
   deallog.pop();
-}
\ No newline at end of file
+}
index 9f182d467dc96b7aca217f9af3d2c080a3486d65..2d333a75e1e23d55d7bc0aa20c0d1b9211590e6a 100644 (file)
@@ -123,7 +123,7 @@ void check_parallelepiped (bool colorize, bool log, const unsigned int (&subd)[d
       for (unsigned int c=0; c<6; ++c)
         VectorTools::interpolate_boundary_values (dh,
                                                   c,
-                                                  ConstantFunction<dim>(c),
+                                                  Functions::ConstantFunction<dim>(c),
                                                   constraints);
       constraints.close();
       constraints.distribute(vec);
index 13a60083ef7570e6ad0aa39095f33cee68446adb..7a88c45590e718e579ce422d20a947987e5ca715 100644 (file)
@@ -256,7 +256,7 @@ void LaplaceProblem<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 502313697bb80e202f77ba400eb46f3c9f8ab011..b62f4630fab45ddc43be7ea9677c19efdf3fe696 100644 (file)
@@ -261,7 +261,7 @@ void LaplaceProblem<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 3766dad88251b848c2060074feadf8a2be18ee89..f240bc4ce65b0cc36733d59d8ec84b0f58fffe17 100644 (file)
@@ -88,7 +88,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ConstantFunction<dim>(1.,2),
+                                           Functions::ConstantFunction<dim>(1.,2),
                                            constraints);
   constraints.close ();
 
index be6c623e7c49db761f646640be6e6405e298f3e2..0fe9ca797feccfe1adbb3a8d21caa7690b548892 100644 (file)
@@ -88,7 +88,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ConstantFunction<dim>(1.,2),
+                                           Functions::ConstantFunction<dim>(1.,2),
                                            constraints);
   constraints.close ();
 
index ba6a99d3feaedcc48ab51c3e684e0bcbfb325acb..e915bfc218f2d7a1f42163651cb98c3e48413f11 100644 (file)
@@ -88,7 +88,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ConstantFunction<dim>(1.,2),
+                                           Functions::ConstantFunction<dim>(1.,2),
                                            constraints);
   constraints.close ();
 
index 85598586ae41b402d09acc2250443a74edbd87a2..b9af36944e4c27087ade6acc99537144baf8d8da 100644 (file)
@@ -88,7 +88,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ConstantFunction<dim>(1.,2),
+                                           Functions::ConstantFunction<dim>(1.,2),
                                            constraints);
   constraints.close ();
 
index 12c2731a5fb22c2f5eee5e009db0d260ec644393..55fccbcc966c20277e18a8441d44dbef3d5aa8aa 100644 (file)
@@ -85,7 +85,7 @@ void test ()
   // the sum over the elements of the
   // resulting rhs vector, you need to get
   // four
-  ConstantFunction< 2 > rhs_function(1);
+  Functions::ConstantFunction< 2 > rhs_function(1);
 
   VectorTools::create_boundary_right_hand_side ( hp_dof_handler2,
                                                  quadrature,
index 9c12489e48885d56ec8742eeb82d022d46ed5470..51b23c7f8ee716d9793886d70f790b9f1bb10528 100644 (file)
@@ -69,7 +69,7 @@ void test ()
   std::map<types::global_dof_index, double> bv;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(1),
+                                            Functions::ZeroFunction<dim>(1),
                                             bv);
   for (std::map<types::global_dof_index, double>::iterator
        p = bv.begin(); p!=bv.end(); ++p)
index e6387d2eaf0062444540993898ea382b0bb8dbd2..4b76f40ded9522bd16c62ded40f1cb7bb2722381 100644 (file)
@@ -71,7 +71,7 @@ void test ()
   std::map<types::global_dof_index, double> bv;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(2),
+                                            Functions::ZeroFunction<dim>(2),
                                             bv);
   for (std::map<types::global_dof_index, double>::iterator
        p = bv.begin(); p!=bv.end(); ++p)
index bc4da89d36ccf079c66dc1fd458ff22caeaa9314..837ad8051f99f32d5ff98452b503c93ed282ea7c 100644 (file)
@@ -73,7 +73,7 @@ void test ()
   std::map<types::global_dof_index, double> bv;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(4),
+                                            Functions::ZeroFunction<dim>(4),
                                             bv);
   for (std::map<types::global_dof_index, double>::iterator
        p = bv.begin(); p!=bv.end(); ++p)
index 93f4946199fcae711b33a2d9c378c30225ce7851..9fffdd597f93b5fe3aa42c04884392e9b0d4e59f 100644 (file)
@@ -72,7 +72,7 @@ void test ()
   Vector<double> solution(dof_handler.n_dofs());
 
   VectorTools::interpolate(dof_handler,
-                           ZeroFunction<dim>(2*dim+1),
+                           Functions::ZeroFunction<dim>(2*dim+1),
                            solution);
 
   deallog << "l2_norm = " << solution.l2_norm() << std::endl;
index 6bd4c389b2f3c83265bed4d7d5ddb72c65c3cc35..28f6ba5f0f84947b563efbf3d221cc3f062f2890 100644 (file)
@@ -63,7 +63,7 @@ void test ()
   Vector<double> solution(dof_handler.n_dofs());
 
   VectorTools::interpolate(dof_handler,
-                           ZeroFunction<dim>(2),
+                           Functions::ZeroFunction<dim>(2),
                            solution);
 
   deallog << "l2_norm = " << solution.l2_norm() << std::endl;
index 4011a54ef82f58a6a50109c4cf5e8dc611be9648..6537e4932179eb482603cc99579b348cb5e81a82 100644 (file)
@@ -131,4 +131,4 @@ int main (int argc, char *argv[])
   test<2>(false,1);
   test<2>(false,2);
 #endif
-}
\ No newline at end of file
+}
index 3c19acd124560d52eb4a46c35deb7ab335fa2ffd..72aa3626ef085ca8309b4bb6fa766afa522bd242 100644 (file)
@@ -86,7 +86,7 @@ void test ()
   {
     VectorTools::integrate_difference (dof_handler,
                                        vec,
-                                       ZeroFunction<dim>(),
+                                       Functions::ZeroFunction<dim>(),
                                        diff,
                                        q_collection,
                                        VectorTools::L1_norm);
@@ -98,7 +98,7 @@ void test ()
   {
     VectorTools::integrate_difference (dof_handler,
                                        vec,
-                                       ZeroFunction<dim>(),
+                                       Functions::ZeroFunction<dim>(),
                                        diff,
                                        q_collection,
                                        VectorTools::H1_seminorm);
@@ -111,7 +111,7 @@ void test ()
   {
     VectorTools::integrate_difference (dof_handler,
                                        vec,
-                                       ZeroFunction<dim>(),
+                                       Functions::ZeroFunction<dim>(),
                                        diff,
                                        q_collection,
                                        VectorTools::W1infty_seminorm);
@@ -128,7 +128,7 @@ void test ()
   {
     VectorTools::integrate_difference (dof_handler,
                                        vec,
-                                       ZeroFunction<dim>(),
+                                       Functions::ZeroFunction<dim>(),
                                        diff,
                                        q_collection,
                                        VectorTools::W1infty_norm);
index 203827d0792a71ca26e12d9ac4eb9385de432742..2312d637d96c01c2e43194d8637884790009d750 100644 (file)
@@ -90,7 +90,7 @@ void test ()
   {
     VectorTools::integrate_difference (dof_handler,
                                        vec,
-                                       ZeroFunction<dim>(dim),
+                                       Functions::ZeroFunction<dim>(dim),
                                        diff,
                                        q_collection,
                                        VectorTools::H1_seminorm);
@@ -103,7 +103,7 @@ void test ()
   {
     VectorTools::integrate_difference (dof_handler,
                                        vec,
-                                       ZeroFunction<dim>(dim),
+                                       Functions::ZeroFunction<dim>(dim),
                                        diff,
                                        q_collection,
                                        VectorTools::W1infty_seminorm);
index 3a9703b26228457f4cec9a6ec3d35e3639d0558d..b2b1854429948fdddf65e72ddb81459611a6c045 100644 (file)
@@ -61,7 +61,7 @@ void test ()
 
   // interpolate the function
   VectorTools::interpolate (dof_handler,
-                            ZeroFunction<dim>(hp_fe[0].n_components()),
+                            Functions::ZeroFunction<dim>(hp_fe[0].n_components()),
                             interpolant);
   deallog << interpolant.l2_norm() << std::endl;
 }
index 4648a6f70567850c990fbb27cd14b224ca2fd484..c26d9fe217ff1984a0ee82b0dcd1427f3789fb4f 100644 (file)
@@ -221,7 +221,7 @@ void diffusionMechanics<dim>::run ()
 
   //Initial conditions
   VectorTools::interpolate(dof_handler, InitialConditions<dim>(), Un);
-  //  VectorTools::interpolate(dof_handler, ZeroFunction<dim>(fe_collection.n_components()), Un);
+  //  VectorTools::interpolate(dof_handler, Functions::ZeroFunction<dim>(fe_collection.n_components()), Un);
   U=Un;
   U0=Un;
 
index ad84404317a8db09957a1b5e5f458d9b97d4a103..fceb6db1a4301a64b982ec2588b88118f25279f1 100644 (file)
@@ -72,7 +72,7 @@ void test ()
 
   // interpolate the function
   VectorTools::interpolate(dof_handler,
-                           ConstantFunction<dim>(3.14),
+                           Functions::ConstantFunction<dim>(3.14),
                            interpolant);
   deallog << interpolant.mean_value() << std::endl;
 }
index a31c163db2fd52dd0f5e0a0f5d0505aae9e4834d..3b54b73e56f8a28b3146f1b22ae0777b0ecb8e33 100644 (file)
@@ -141,12 +141,12 @@ void LaplaceProblem<dim>::assemble_and_solve ()
                                       system_matrix);
   VectorTools::create_right_hand_side (mapping, dof_handler,
                                        hp::QCollection<dim>(QGauss<dim>(gauss_degree)),
-                                       ConstantFunction<dim>(-2),
+                                       Functions::ConstantFunction<dim>(-2),
                                        system_rhs);
   Vector<double> tmp (system_rhs.size());
   VectorTools::create_boundary_right_hand_side (mapping, dof_handler,
                                                 hp::QCollection<dim-1>(QGauss<dim-1>(gauss_degree)),
-                                                ConstantFunction<dim>(1),
+                                                Functions::ConstantFunction<dim>(1),
                                                 tmp);
   system_rhs += tmp;
 
@@ -159,7 +159,7 @@ void LaplaceProblem<dim>::assemble_and_solve ()
   Vector<float> norm_per_cell (triangulation.n_active_cells());
   VectorTools::integrate_difference (mapping, dof_handler,
                                      solution,
-                                     ZeroFunction<dim>(),
+                                     Functions::ZeroFunction<dim>(),
                                      norm_per_cell,
                                      hp::QCollection<dim>(QGauss<dim>(gauss_degree+1)),
                                      VectorTools::H1_seminorm);
index c2d02527a676e6e46d933c2535078bd5eb5cd1d9..6be89653d7fd0c1accad32fc3f76ddde5e37fd69 100644 (file)
@@ -179,7 +179,7 @@ namespace Step27
                                              constraints);
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim>(),
+                                              Functions::ZeroFunction<dim>(),
                                               constraints);
     constraints.close ();
 
index e6423d3aa7edfdf3690246859497f282bdf95b9a..6b123facc25f3c095b106b06fd6da004f87866e3 100644 (file)
@@ -169,7 +169,7 @@ void LaplaceProblem::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<2>(),
+                                            Functions::ZeroFunction<2>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index cbef4b5326180101a26b9949772c771dfdec1587..29a245b0ab8813705dce154a9dcb38889fe7b036 100644 (file)
@@ -209,7 +209,7 @@ void LaplaceProblem::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<2>(),
+                                            Functions::ZeroFunction<2>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 7a067f3896f5be91f7c8a0194dee249ce5e43915..fc75e3f88120e3655014f7b508233588cf758397 100644 (file)
@@ -206,7 +206,7 @@ void LaplaceProblem::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<2>(),
+                                            Functions::ZeroFunction<2>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 0e868edf99ad3eb8064ecbbc84a646eeae1151d2..748016945e1fad695cc99c4874700a17f43a3522 100644 (file)
@@ -208,7 +208,7 @@ void LaplaceProblem::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<2>(),
+                                            Functions::ZeroFunction<2>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 92019d58b80843ea434dc1aa75d501cb4eeb1c02..11ea4bb1af419786c805c193a56af6a82151a502 100644 (file)
@@ -224,7 +224,7 @@ void LaplaceProblem<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 7473d5ed1b6f7a134d656881ad246773c128b50a..9d5f71170af7c13795c72e2555cb2faf79033501 100644 (file)
@@ -251,7 +251,7 @@ void LaplaceProblem<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 064e844cce5ab688d5cbd6f1f9bfcf2940a50c75..931c12f1753f7ac979ececfa84e8152b885d5fc4 100644 (file)
@@ -213,7 +213,7 @@ void ElasticProblem<dim>::assemble_system ()
   std::vector<double>     lambda_values (n_q_points);
   std::vector<double>     mu_values (n_q_points);
 
-  ConstantFunction<dim> lambda(1.), mu(1.);
+  Functions::ConstantFunction<dim> lambda(1.), mu(1.);
 
   RightHandSide<dim>      right_hand_side;
   std::vector<Vector<double> > rhs_values (n_q_points,
@@ -301,7 +301,7 @@ void ElasticProblem<dim>::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(dim),
+                                            Functions::ZeroFunction<dim>(dim),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index 383b8754319a102753feb8f750fe74cdecb07080..f93d824d172ed9d181f695e2774cc5a656480892 100644 (file)
@@ -309,7 +309,7 @@ void LaplaceProblem<VectorType,Matrix,Sparsity>::assemble_system ()
   std::map<types::global_dof_index,typename VectorType::value_type> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<2,typename VectorType::value_type>(),
+                                            Functions::ZeroFunction<2,typename VectorType::value_type>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index ef7d18c22350418e1a1bb73fb9ab8d20e5de6330..309b38651d9768770a9a3fc3dc2b76ce0afb7e77 100644 (file)
@@ -108,7 +108,7 @@ void Step6<dim>::setup_system ()
                                            constraints);
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ConstantFunction<dim>(1.),
+                                            Functions::ConstantFunction<dim>(1.),
                                             constraints);
   constraints.close ();
 
index 63b3bec9857733c4bbbf6ac2b0e8591b53a21917..c25df9ea8af52d7624b0f4802a9fa79c048786cf 100644 (file)
@@ -78,7 +78,7 @@ void test ()
     std::map<types::global_dof_index,double> boundary_values;
     VectorTools::interpolate_boundary_values (dof,
                                               0,
-                                              ConstantFunction<dim>(1.),
+                                              Functions::ConstantFunction<dim>(1.),
                                               boundary_values);
     std::map<types::global_dof_index,double>::const_iterator boundary_value =
       boundary_values.begin();
@@ -100,7 +100,7 @@ void test ()
           << "Total number of constraints: "
           << correct_constraints.n_constraints() << std::endl;
 
-  VectorTools::interpolate_boundary_values (dof, 0, ConstantFunction<dim>(1.),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ConstantFunction<dim>(1.),
                                             library_constraints);
   library_constraints.close();
 
index 41211c856191c9d35d265bd4ad17b3602e93ac4d..7fa0be791964a6410d6846b16fe6c51f4c8fba38 100644 (file)
@@ -57,7 +57,7 @@ void test ()
 
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 1, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 1, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 29ff294a6a49b5590a8ad16759ce32f4b7e9e0b6..30cfef79066b2ea4cac6a8a37d719411fead93b3 100644 (file)
@@ -59,7 +59,7 @@ void test (unsigned int chunk_size)
 
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 1, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 1, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 811efcb31b41448abd2995c6814fde3650a523af..ec3e1ec7c47f278aba9b331c7bec25baed8735b8 100644 (file)
@@ -66,7 +66,7 @@ void test (const bool hanging_nodes = true)
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 9b99340855d9e272da75b924fa0b5e61bccfe2d4..0e73f89356e8dbd0c0e9629907e8018a0c84ff18 100644 (file)
@@ -134,7 +134,7 @@ void AdvectionProblem<dim>::setup_system ()
     std::map<types::global_dof_index,double> boundary_values;
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ConstantFunction<dim>(1.,2),
+                                              Functions::ConstantFunction<dim>(1.,2),
                                               boundary_values);
     std::map<types::global_dof_index,double>::const_iterator boundary_value =
       boundary_values.begin();
@@ -316,7 +316,7 @@ void AdvectionProblem<dim>::assemble_reference ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ConstantFunction<dim>(1.,2),
+                                            Functions::ConstantFunction<dim>(1.,2),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       reference_matrix,
index 66536bd760eedf1b964e71322617a348cad6d8ab..9a6b3d34273bc4141d79dacc1c2cfe480e8836c5 100644 (file)
@@ -143,7 +143,7 @@ void LaplaceProblem<dim>::setup_system ()
   constraints.clear();
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ConstantFunction<dim>(1),
+                                            Functions::ConstantFunction<dim>(1),
                                             constraints);
   constraints.close();
   sparsity_pattern.reinit (dof_handler.n_dofs(),
index 5349464af4d355b31eaffcd250031c8829e2fdad..70e6bdf0f3a754527eca6e444e98f8b238045822 100644 (file)
@@ -345,12 +345,12 @@ namespace Step22
 #endif
       VectorTools::interpolate_boundary_values (dof_handler,
                                                 0,
-                                                BoundaryValues<dim>(),//ZeroFunction<dim>(dim+1),
+                                                BoundaryValues<dim>(),//Functions::ZeroFunction<dim>(dim+1),
                                                 constraints,
                                                 fe.component_mask(velocities));
       VectorTools::interpolate_boundary_values (dof_handler,
                                                 1,
-                                                BoundaryValues<dim>(),//ZeroFunction<dim>(dim+1),
+                                                BoundaryValues<dim>(),//Functions::ZeroFunction<dim>(dim+1),
                                                 constraints,
                                                 fe.component_mask(velocities));
 
index 7ff2a0d34bfffaeba3c3aee71276ca2b6e5a8c92..b5285c976becc1aaf833d3fb7624b53d945172eb 100644 (file)
@@ -134,4 +134,4 @@ int main()
             }
         }
     }
-}
\ No newline at end of file
+}
index 9f4792eacf36cf9794abbddaf36cf6c95e5b3194..7d6cb59cd735c8ae8bceb30f94796b615dc21bf1 100644 (file)
@@ -97,7 +97,7 @@ void test ()
   DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim> (),
+                                            Functions::ZeroFunction<dim> (),
                                             constraints);
   constraints.close ();
 
index 69ad0492bb8837e78d75e094a37bd3363523aff2..1400be0528ffcf93cca6a7ee55dd5d97bb13a3ea 100644 (file)
@@ -36,4 +36,4 @@ main()
                                           Point<3>(1, 0, 0)) << std::endl
           << manifold.get_tangent_vector (Point<3>(0, 0, -1),
                                           Point<3>(0, 1, 0)) << std::endl;
-}
\ No newline at end of file
+}
index 3c74c244d039f4ff12a2715c0b46a911e5d0ae84..cd29523cbe207305142bad385d00061011e353c8 100644 (file)
@@ -171,7 +171,7 @@ void LaplaceProblem::assemble_system ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<2>(),
+                                            Functions::ZeroFunction<2>(),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values,
                                       system_matrix,
index dbf99560b0673fbbf9cf0cdbaa38ab250ebd1d10..a73a388b71fd37571972b82f16dd44ec418fec03 100644 (file)
@@ -70,7 +70,7 @@ void test ()
   dof.distribute_dofs(fe);
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index c11138038161b09768d1e0545d50a71709aecefc..1f27795c1a9acfa1b90fa8fcab08066b3c9f3aa2 100644 (file)
@@ -68,7 +68,7 @@ void sub_test()
       dof.distribute_dofs(fe);
       ConstraintMatrix constraints;
       DoFTools::make_hanging_node_constraints(dof, constraints);
-      VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+      VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                                 constraints);
       constraints.close();
 
index 626f733157ab4ae973804b4e95c1b172d9b7b056..963388e78f2cdb582a91e11ce41ab1927ff21b5f 100644 (file)
@@ -55,7 +55,7 @@ void test ()
 
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 1, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 1, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 18d137a5f9c1378e2f0269f67d71a2f763c3fe2a..2ebdee75382d021ec5c7f9fda50636e29adc3fe6 100644 (file)
@@ -162,7 +162,7 @@ void test ()
 
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 1, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 1, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index c9f9c401592f90601a0c63279f9c9bb979bce1a5..086b5443d9afac25f0840688c438cbf7dd8d095e 100644 (file)
@@ -87,7 +87,7 @@ void test ()
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 7a12bbb0ba99e4c939c31afeebae7f796a04e365..c3f54efcb5d699d2d2c1241ea20576e3601513e9 100644 (file)
@@ -131,7 +131,7 @@ void test ()
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 1969332a3c9f37b6d54edf922ad49ee7738cb696..8c0599bd8d5866e19e9c014a047c601ebc15b34d 100644 (file)
@@ -95,7 +95,7 @@ void test ()
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index c97528bb57389ade210dc7ca415de08412e3f4fe..696392a5211ba0fefb21c01354f42970c3dc4bd6 100644 (file)
@@ -59,7 +59,7 @@ void test ()
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 9faee0c460b35575188c1ca8b764f0de4af7422e..114bd728804f54d205d651c891386a05090b29fe 100644 (file)
@@ -52,7 +52,7 @@ void test ()
   DoFTools::extract_locally_relevant_dofs (dof, relevant_set);
 
   ConstraintMatrix constraints_0 (relevant_set), constraints_1(relevant_set);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints_0);
   constraints_0.close();
   constraints_1.close();
index 0201494631cf26c72430854b0714027b43dc73d6..8bacef225d4c767c21cfc075122d41d654797b6c 100644 (file)
@@ -39,7 +39,7 @@ void test ()
   DoFHandler<dim> dof (tria);
   dof.distribute_dofs(fe);
   ConstraintMatrix constraints;
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 9bf389ffa0073bc780922f7cb3a1da4bfc1f0bac..0e2d1ca32062eddf528bc8fba3a96161bee0aee0 100644 (file)
@@ -67,7 +67,7 @@ void test ()
   dof.distribute_dofs(fe);
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index be346f8ad0457d7092c145b82dbc700cf1915ddd..208b4d4e0cc3b7758f895171dee6d561f760bf3d 100644 (file)
@@ -66,7 +66,7 @@ void test ()
   dof.distribute_dofs(fe);
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 1772e8db0b9edf1d78b499cc485595b34c0731b4..aa6efce533f79248b65aaafa80cc7f1cc8e8611c 100644 (file)
@@ -62,7 +62,7 @@ void test ()
   dof.distribute_dofs(fe);
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index b2c39699c86d359441a1445f4250ee66703e1428..f1fd90a9e0cf4162cb022d2a80575796cb9fe848 100644 (file)
@@ -84,7 +84,7 @@ void test ()
   // only interior DoFs on the elements, but try
   // anyway
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index d597b818f2c677324c8d984039849557b1b03369..77393333b9cc8dd46a5fc3e098e7a43e5f747659 100644 (file)
@@ -65,7 +65,7 @@ void test ()
   dof.distribute_dofs(fe);
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 1b90a7e0a8f9af47b5615f667b9bb5c0a088642d..d4e1a018c0c5ab368a72c93693ae205a7cdb345a 100644 (file)
@@ -64,7 +64,7 @@ void test ()
   dof.distribute_dofs(fe);
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 47b53b68621d89abf7cede465a395ac9d9949ab1..704b2360390dce2b9684af29fc839ec1ddce2325 100644 (file)
@@ -95,7 +95,7 @@ void test ()
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 4ee2ad4db1c40709bb3e295ae640720c09d2bb36..101a27d7241a47e1346f53eac407595dcd1fc87e 100644 (file)
@@ -88,7 +88,7 @@ void test ()
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 61b74e95379dafda18087cf0960ec773909eee59..e168f499c801722c1ef00916ab858496f5cf6c4a 100644 (file)
@@ -150,7 +150,7 @@ void test ()
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 0e8b6a2e23df59ffe31054e8f8f9dd07c8f59b89..108e626e6a27c68bc0163ea1b45ba831c4f72b30 100644 (file)
@@ -150,7 +150,7 @@ void test ()
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 97273c2172a7c164a1a6e914d8c0e0de3c718393..3eeae85c256a5976730d2e4b9b299165585b4e83 100644 (file)
@@ -205,7 +205,7 @@ void test ()
   dof.distribute_dofs(fe);
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 445cb605938a96ddb4f47e05fd727df4a70391fc..147612869181b690560209cba8f08e8193a372a9 100644 (file)
@@ -210,7 +210,7 @@ void test ()
   dof.distribute_dofs(fe);
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(dim),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(dim),
                                             constraints);
   constraints.close();
 
index 50ba2cb34ee62b3e0f4c06f3d529655b8abdc491..22f8b04c9bfb2626de1bb8e27c18a53853f6eb49 100644 (file)
@@ -60,7 +60,7 @@ void test ()
   dof.distribute_dofs(fe);
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index e5ac787b1bf2dcf9c5d0442b266226bd8cc0f556..aff7123e99b2178c5e67530bc07e03401dbb0b0e 100644 (file)
@@ -228,7 +228,7 @@ void test ()
   dof.distribute_dofs(fe);
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 9c15bf98304a7cd223092a98b29f55402fb2e84e..bf72ae3e855a44d4e0d9df10f958b724b038ea57 100644 (file)
@@ -85,7 +85,7 @@ void test ()
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 10cffd2cb378f092b07e5c6ca648836ad8944e4c..7903107474ef8252482f3ae9a2d57703285c2240 100644 (file)
@@ -154,7 +154,7 @@ void test ()
 
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 762d33016196e40590330a4b34a56c4d76549ac7..8d95f1fc4453d167fcc5acedf6eeef19dc06e463 100644 (file)
@@ -145,7 +145,7 @@ void test ()
 
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index b6794cfbf5243abc20336e1ebed8a03f4a4e607f..d525616d031fa9c84831a2f854548d040a65618b 100644 (file)
@@ -151,7 +151,7 @@ void test ()
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index d19f288324f6f207c6b2a0b05f725be708b90939..80cb8d9455792f686e00962ce5b24c80032144bf 100644 (file)
@@ -162,7 +162,7 @@ void test ()
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 32aa9e21b2cfa3610688e27fd159bc19dace5311..2ef28659245c308e3bacb5fcd7e8a102dcab154c 100644 (file)
@@ -155,7 +155,7 @@ void test ()
                                            constraints);
   VectorTools::interpolate_boundary_values (dof,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close ();
   DynamicSparsityPattern csp (dof.n_dofs(),
index 7f46d2a1c0f9f63d84277a6bb2b2178d2cd2211a..ccd4f65d7dd5172e27b6cb10375f7258f93bfca4 100644 (file)
@@ -73,7 +73,7 @@ void test ()
 
   ConstraintMatrix constraints (relevant_set);
   DoFTools::make_hanging_node_constraints(dof, constraints);
-  VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+  VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close();
 
index 57341791a60288f2b8b8efa090683e90958873a2..77756ec28ebb3c8ab63c504e234520af8a228883 100644 (file)
@@ -56,7 +56,7 @@ void test ()
   ConstraintMatrix constraints;
   VectorTools::interpolate_boundary_values (dof,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close ();
 
@@ -91,7 +91,7 @@ void test ()
   mg_ref_matrices.resize (0, nlevels-1);
 
   typename FunctionMap<dim>::type dirichlet_boundary;
-  ZeroFunction<dim>               homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>               homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   std::vector<std::set<types::global_dof_index> > boundary_indices(nlevels);
   MGTools::make_boundary_list (dof, dirichlet_boundary, boundary_indices);
index d01c5e6e8c64aca63342ff8b04436b371278b933..728c54334df0b2776f15e1790d9e29027daec5a0 100644 (file)
@@ -64,7 +64,7 @@ public:
 
     // extract the constraints due to Dirichlet boundary conditions
     ConstraintMatrix constraints;
-    ZeroFunction<dim> zero;
+    Functions::ZeroFunction<dim> zero;
     typename FunctionMap<dim>::type functions;
     for (std::set<types::boundary_id>::const_iterator it=dirichlet_boundaries.begin();
          it != dirichlet_boundaries.end(); ++it)
index 84db5993b565c601456244e9b05163a86d35aa44..ae549cfd68bd4a8be0265332c0a3341dfc333768 100644 (file)
@@ -92,7 +92,7 @@ void do_test (const DoFHandler<dim>  &dof)
   DoFTools::extract_locally_relevant_dofs(dof, locally_relevant_dofs);
 
   // Dirichlet BC
-  ZeroFunction<dim> zero_function;
+  Functions::ZeroFunction<dim> zero_function;
   typename FunctionMap<dim>::type dirichlet_boundary;
   dirichlet_boundary[0] = &zero_function;
 
index bfd6eb2d4ff1f376ee0f35e3d46dbb347625e778..06c17e8639b34e54bb6de82aa772c18359c95865 100644 (file)
@@ -452,7 +452,7 @@ void do_test (const DoFHandler<dim>  &dof)
   hanging_node_constraints.close();
 
   MGConstrainedDoFs mg_constrained_dofs;
-  ZeroFunction<dim> zero_function;
+  Functions::ZeroFunction<dim> zero_function;
   typename FunctionMap<dim>::type dirichlet_boundary;
   dirichlet_boundary[0] = &zero_function;
   mg_constrained_dofs.initialize(dof, dirichlet_boundary);
index f59a08018754c82198d879269dfb567347553650..006d58625996cd2f85d80bc1f02c72373183498d 100644 (file)
@@ -129,7 +129,7 @@ void do_test (const DoFHandler<dim>  &dof)
   DoFTools::extract_locally_relevant_dofs(dof, locally_relevant_dofs);
 
   // Dirichlet BC
-  ZeroFunction<dim> zero_function;
+  Functions::ZeroFunction<dim> zero_function;
   typename FunctionMap<dim>::type dirichlet_boundary;
   dirichlet_boundary[0] = &zero_function;
 
index 556709b5849ea7746f70a363a35e9f4c4e7978b7..259e07c9b17e5b30b13b983d01b12193f894ddc7 100644 (file)
@@ -449,7 +449,7 @@ void do_test (const DoFHandler<dim>  &dof, const bool threaded)
   hanging_node_constraints.close();
 
   MGConstrainedDoFs mg_constrained_dofs;
-  ZeroFunction<dim> zero_function;
+  Functions::ZeroFunction<dim> zero_function;
   typename FunctionMap<dim>::type dirichlet_boundary;
   dirichlet_boundary[0] = &zero_function;
   mg_constrained_dofs.initialize(dof, dirichlet_boundary);
index 155dca380512877b61bd7e1670762160ce49e322..43c2b9b0bf4fcaa040c00f26808c596bbc40c9e6 100644 (file)
@@ -129,7 +129,7 @@ void do_test (const DoFHandler<dim>  &dof)
   DoFTools::extract_locally_relevant_dofs(dof, locally_relevant_dofs);
 
   // Dirichlet BC
-  ZeroFunction<dim> zero_function;
+  Functions::ZeroFunction<dim> zero_function;
   typename FunctionMap<dim>::type dirichlet_boundary;
   dirichlet_boundary[0] = &zero_function;
 
index 3c811fc2e6e4c79a0560df80b30140081a77274f..bc784d3b4b67b3dd3ebb2f6b49469db3ea67c172 100644 (file)
@@ -446,7 +446,7 @@ void do_test (const DoFHandler<dim>  &dof, const bool threaded)
   hanging_node_constraints.close();
 
   MGConstrainedDoFs mg_constrained_dofs;
-  ZeroFunction<dim> zero_function;
+  Functions::ZeroFunction<dim> zero_function;
   typename FunctionMap<dim>::type dirichlet_boundary;
   dirichlet_boundary[0] = &zero_function;
   mg_constrained_dofs.initialize(dof, dirichlet_boundary);
index 27b8baca8b06e3e8ea5893f85be416ee0a6f9954..a7a36a01936acb4d0d0051e665eeb5a0a06b36ff 100644 (file)
@@ -63,7 +63,7 @@ public:
 
     // extract the constraints due to Dirichlet boundary conditions
     ConstraintMatrix constraints;
-    ZeroFunction<dim> zero;
+    Functions::ZeroFunction<dim> zero;
     typename FunctionMap<dim>::type functions;
     for (std::set<types::boundary_id>::const_iterator it=dirichlet_boundaries.begin();
          it != dirichlet_boundaries.end(); ++it)
@@ -334,7 +334,7 @@ void do_test (const DoFHandler<dim>  &dof)
     }
 
   MGConstrainedDoFs mg_constrained_dofs;
-  ZeroFunction<dim> zero_function;
+  Functions::ZeroFunction<dim> zero_function;
   typename FunctionMap<dim>::type dirichlet_boundary;
   dirichlet_boundary[0] = &zero_function;
   mg_constrained_dofs.initialize(dof, dirichlet_boundary);
index 2a6d74eb269c2c7d976e286ba5e820b5dc333f7a..ab5b236729b759035ccc6e68a338157772a157d2 100644 (file)
@@ -403,7 +403,7 @@ namespace Step37
     constraints.clear();
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim>(),
+                                              Functions::ZeroFunction<dim>(),
                                               constraints);
     constraints.close();
 
@@ -416,7 +416,7 @@ namespace Step37
     mg_constraints.resize (0, nlevels-1);
 
     typename FunctionMap<dim>::type dirichlet_boundary;
-    ZeroFunction<dim>               homogeneous_dirichlet_bc (1);
+    Functions::ZeroFunction<dim>               homogeneous_dirichlet_bc (1);
     dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
     std::vector<std::set<types::global_dof_index> > boundary_indices(triangulation.n_levels());
     MGTools::make_boundary_list (dof_handler,
index 31035a219175a4afb05d2118c4a27fd7299769d6..78845ef36321f444595762bc5bf727dba0d43097 100644 (file)
@@ -316,7 +316,7 @@ namespace Step48
     Vector<float> norm_per_cell (triangulation.n_active_cells());
     VectorTools::integrate_difference (dof_handler,
                                        solution,
-                                       ZeroFunction<dim>(),
+                                       Functions::ZeroFunction<dim>(),
                                        norm_per_cell,
                                        QGauss<dim>(fe_degree+1),
                                        VectorTools::L2_norm);
index 71b23ca09c170c7257479b4427d417d1d7d45b30..6b00166c5d367cbaa7a78812bf3cb34d0480b355 100644 (file)
@@ -282,7 +282,7 @@ namespace Step48
     Vector<float> norm_per_cell (triangulation.n_active_cells());
     VectorTools::integrate_difference (dof_handler,
                                        solution,
-                                       ZeroFunction<dim>(),
+                                       Functions::ZeroFunction<dim>(),
                                        norm_per_cell,
                                        QGauss<dim>(fe_degree+1),
                                        VectorTools::L2_norm);
index 0f37d312e3b424b5f9cd5a913609f808c7b30c12..c4981885c7e601e8285fddc5b0e2a9eef755208a 100644 (file)
@@ -287,7 +287,7 @@ namespace Step48
     Vector<float> norm_per_cell (triangulation.n_active_cells());
     VectorTools::integrate_difference (dof_handler,
                                        solution,
-                                       ZeroFunction<dim>(),
+                                       Functions::ZeroFunction<dim>(),
                                        norm_per_cell,
                                        QGauss<dim>(fe_degree+1),
                                        VectorTools::L2_norm);
index 093550fd7d11a1086a7289691e005533f7e2224e..02b1544290c6c54914a24c911c7d793719f2a8b7 100644 (file)
@@ -71,7 +71,7 @@ void sub_test()
       dof.distribute_dofs(fe);
       ConstraintMatrix constraints;
       DoFTools::make_hanging_node_constraints(dof, constraints);
-      VectorTools::interpolate_boundary_values (dof, 0, ZeroFunction<dim>(),
+      VectorTools::interpolate_boundary_values (dof, 0, Functions::ZeroFunction<dim>(),
                                                 constraints);
       constraints.close();
 
index 35b5b80182aeb71c507eaff5f9fa40cc72294491..41a1a1412cb347ffff6f2b4a8049fb3c8247de9f 100644 (file)
@@ -131,7 +131,7 @@ void do_test (const unsigned int parallel_option)
                                            constraints);
   VectorTools::interpolate_boundary_values (dof,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close ();
 
index 7eea9ce2ae2ce8a3a862f1fd4a28742765382298..a383d4a2e90ea2bd4577863290e130886c404a53 100644 (file)
@@ -96,7 +96,7 @@ void test()
 
   VectorTools::interpolate_boundary_values (dofh,
                                             0,
-                                            ZeroFunction<dim>(dim+1),
+                                            Functions::ZeroFunction<dim>(dim+1),
                                             cm,
                                             velocity_mask);
 
index be8982059c391709fa36053adec3c3d2f0e81ff0..c783d64856f134b50587e47d391b8df31d368427 100644 (file)
@@ -114,7 +114,7 @@ namespace pdd
     constraints.clear ();
     constraints.reinit (locally_relevant_dofs);
     DoFTools::make_hanging_node_constraints (dof_handler,constraints);
-    VectorTools::interpolate_boundary_values (dof_handler, 0, ConstantFunction<dim> (1.0), constraints);
+    VectorTools::interpolate_boundary_values (dof_handler, 0, Functions::ConstantFunction<dim> (1.0), constraints);
     constraints.close ();
     constraints.distribute(locally_relevant_solution);
   }
index a69d37434c58af9b11b76ba8475115dd534209c2..bfb1bf448543ed345f233235c6e3cfd9eef1bdac 100644 (file)
@@ -80,7 +80,7 @@ void test()
   // ones printed in the output are correct
   Vector<float> results (tr.n_active_cells());
   VectorTools::integrate_difference (dofh, x_rel,
-                                     ZeroFunction<dim>(),
+                                     Functions::ZeroFunction<dim>(),
                                      results,
                                      QGauss<dim>(3),
                                      VectorTools::L2_norm);
index e4d199738be977c5c84b4b52db715d154af05447..0380648ebff3e420b29f020d39ec82e6264b949b 100644 (file)
@@ -65,7 +65,7 @@ void test()
   x.reinit(owned_set, MPI_COMM_WORLD);
 
   VectorTools::interpolate(dofh,
-                           ConstantFunction<dim>(1),
+                           Functions::ConstantFunction<dim>(1),
                            x);
   const double norm = x.l2_norm();
   if (myid == 0)
index 20fbf978c087599e2797d8576bdcecebcc2e7ccc..39847c963118a800deb26e420851c814045b85eb 100644 (file)
@@ -64,7 +64,7 @@ void test()
   PETScWrappers::MPI::Vector x (MPI_COMM_WORLD,dofh.n_dofs(),owned_set.n_elements());
 
   VectorTools::interpolate(dofh,
-                           ConstantFunction<dim,PetscScalar>(1),
+                           Functions::ConstantFunction<dim,PetscScalar>(1),
                            x);
   const double norm = x.l2_norm();
   if (myid == 0)
index 995676749b10e68cc1089788a8ca4c8df944e7d8..f5adaee997bc072dd5679a789190e707e623b35d 100644 (file)
@@ -117,7 +117,7 @@ void SeventhProblem<dim>::setup_system ()
   DoFTools::make_hanging_node_constraints (dof_handler, constraints);
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(),
+                                            Functions::ZeroFunction<dim>(),
                                             constraints);
   constraints.close ();
   DynamicSparsityPattern csp (locally_relevant_dofs);
index d21c1e235c2b912c7fb60b023ee10d6fbebf6772..9732119c3f9b0caed95d54daffaecb966ba034a8 100644 (file)
@@ -342,12 +342,12 @@ namespace Step22
 #endif
       VectorTools::interpolate_boundary_values (dof_handler,
                                                 0,
-                                                BoundaryValues<dim>(),//ZeroFunction<dim>(dim+1),
+                                                BoundaryValues<dim>(),//Functions::ZeroFunction<dim>(dim+1),
                                                 constraints,
                                                 fe.component_mask(velocities));
       VectorTools::interpolate_boundary_values (dof_handler,
                                                 1,
-                                                BoundaryValues<dim>(),//ZeroFunction<dim>(dim+1),
+                                                BoundaryValues<dim>(),//Functions::ZeroFunction<dim>(dim+1),
                                                 constraints,
                                                 fe.component_mask(velocities));
 
index cc9341184a4e41c07af9b8af6919bc8640587cdd..cae2f2e498ad47df6a7c8d44a867459d8f212caa 100644 (file)
@@ -186,7 +186,7 @@ namespace Step50
     DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
 
     typename FunctionMap<dim>::type      dirichlet_boundary;
-    ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+    Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
     dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
     VectorTools::interpolate_boundary_values (static_cast<const DoFHandler<dim>&>(mg_dof_handler),
                                               dirichlet_boundary,
index d30f2246b79311188b94ea95e7c46b556a7ff183..61c5e17eca4ac1a628e28716ac2ca4a4a3331c1c 100644 (file)
@@ -186,7 +186,7 @@ namespace Step50
     DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
 
     typename FunctionMap<dim>::type      dirichlet_boundary;
-    ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+    Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
     dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
     VectorTools::interpolate_boundary_values (static_cast<const DoFHandler<dim>&>(mg_dof_handler),
                                               dirichlet_boundary,
index e2eabab948b58ce2324c7287abe3a399f6262511..4a95eb9c4d0f48b197020e87bce64fd4d91d7b6d 100644 (file)
@@ -155,7 +155,7 @@ void test()
 
   VectorTools::interpolate_boundary_values (dofh,
                                             0,
-                                            ZeroFunction<dim>(dim+1),
+                                            Functions::ZeroFunction<dim>(dim+1),
                                             cm,
                                             velocity_mask);
 
index c550584dc3c9baea630016b7332ecb6ab63ac52b..d3c33607d5f898b17d6d6f6c37acab05d669469a 100644 (file)
@@ -266,7 +266,7 @@ void test()
 
           VectorTools::interpolate_boundary_values (dofh,
           0,
-          ZeroFunction<dim>(1),
+          Functions::ZeroFunction<dim>(1),
           cm,
           velocity_mask);          */
 
index 8265aa85b31ecf46c0c29be96f646879d00e5b51..70d49e15554b020aa56b75e2a7f34824867aa75e 100644 (file)
@@ -57,7 +57,7 @@ void test()
   TrilinosWrappers::MPI::Vector x_ref;
   x_ref.reinit(owned_set, MPI_COMM_WORLD);
   VectorTools::interpolate(dofh,
-                           ConstantFunction<dim> (1.),
+                           Functions::ConstantFunction<dim> (1.),
                            x_ref);
 
   TrilinosWrappers::MPI::Vector x1 (x_ref);
index ee176ba69d7ebc58defceb51bef9113e46b505ce..ec62c77331c72640025a5dbc44fe1483706bb48b 100644 (file)
@@ -261,7 +261,7 @@ void test()
 
           VectorTools::interpolate_boundary_values (dofh,
           0,
-          ZeroFunction<dim>(1),
+          Functions::ZeroFunction<dim>(1),
           cm,
           velocity_mask);          */
 
index 3111c41eb7c09ecf2f84058a928c0114eb1ba077..062c327f10470afb0ed1d74c0ba0c6e4d22c76fd 100644 (file)
@@ -62,7 +62,7 @@ void test ()
   v2_interpolated(v2);
 
   // set first vector to 1
-  VectorTools::interpolate(dof2, ConstantFunction<dim>(1.), v2);
+  VectorTools::interpolate(dof2, Functions::ConstantFunction<dim>(1.), v2);
   for (unsigned int i=0; i<v2.local_size(); ++i)
     Assert(v2.local_element(i) == 1., ExcInternalError());
 
index 744c58e848922660d284fdcd63f85f4d831c985e..dad411d00c04ee16e905706b93aac449a09111ff 100644 (file)
@@ -57,7 +57,7 @@ void test ()
                                                 v2(dof2.locally_owned_dofs(), locally_relevant_dofs2, MPI_COMM_WORLD);
 
   // set first vector to 1
-  VectorTools::interpolate(dof1, ConstantFunction<dim>(1.), v1);
+  VectorTools::interpolate(dof1, Functions::ConstantFunction<dim>(1.), v1);
   for (unsigned int i=0; i<v1.local_size(); ++i)
     Assert(v1.local_element(i) == 1., ExcInternalError());
 
index 5dfd796e2dab8e4fcc8e5d70639d3cda7217c75c..425d6c8c7b58a239295269391674774d72ad488b 100644 (file)
@@ -156,7 +156,7 @@ namespace Step40
 
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim>(),
+                                              Functions::ZeroFunction<dim>(),
                                               constraints);
     DoFTools::make_hanging_node_constraints (dof_handler, constraints);
     constraints.close ();
index 5507ffb9a1b721cce21905f1c48ce7e55b4d0c2f..79ec6cabb0527f85ebf10a183209683fef4227e7 100644 (file)
@@ -343,12 +343,12 @@ namespace Step22
 #endif
       VectorTools::interpolate_boundary_values (dof_handler,
                                                 0,
-                                                BoundaryValues<dim>(),//ZeroFunction<dim>(dim+1),
+                                                BoundaryValues<dim>(),//Functions::ZeroFunction<dim>(dim+1),
                                                 constraints,
                                                 fe.component_mask(velocities));
       VectorTools::interpolate_boundary_values (dof_handler,
                                                 1,
-                                                BoundaryValues<dim>(),//ZeroFunction<dim>(dim+1),
+                                                BoundaryValues<dim>(),//Functions::ZeroFunction<dim>(dim+1),
                                                 constraints,
                                                 fe.component_mask(velocities));
 
index b059784926b518006808336fcbe76d2e987aafb7..4f1d3c7ffc96876a47b71cb251fd95681be47911 100644 (file)
@@ -282,25 +282,25 @@ namespace Step22
 
       VectorTools::interpolate_boundary_values (dof_handler,
                                                 1,
-                                                ZeroFunction<dim>(dim+1),
+                                                Functions::ZeroFunction<dim>(dim+1),
                                                 constraints,
                                                 fe.component_mask(velocities));
 
       VectorTools::interpolate_boundary_values (dof_handler,
                                                 2,
-                                                ZeroFunction<dim>(dim+1),
+                                                Functions::ZeroFunction<dim>(dim+1),
                                                 constraints,
                                                 fe.component_mask(velocities));
 
       VectorTools::interpolate_boundary_values (dof_handler,
                                                 3,
-                                                ZeroFunction<dim>(dim+1),
+                                                Functions::ZeroFunction<dim>(dim+1),
                                                 constraints,
                                                 fe.component_mask(velocities));
 
       VectorTools::interpolate_boundary_values (dof_handler,
                                                 5,
-                                                ZeroFunction<dim>(dim+1),
+                                                Functions::ZeroFunction<dim>(dim+1),
                                                 constraints,
                                                 fe.component_mask(velocities));
     }
index 9dcf1636a88ad76ba3d23b6fe88a6018c128c5fc..42dfea81cc0c29898ae773999e049bdbccfa9984 100644 (file)
@@ -144,7 +144,7 @@ namespace Step40
     DoFTools::make_hanging_node_constraints (dof_handler, constraints);
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim>(),
+                                              Functions::ZeroFunction<dim>(),
                                               constraints);
     constraints.close ();
 
index 15b5ce010699f318cbd70be4e4c724a3a2cdece5..f6a08b6084d6d809bf8633639ea0a5bae2a5b486 100644 (file)
@@ -144,7 +144,7 @@ namespace Step40
     DoFTools::make_hanging_node_constraints (dof_handler, constraints);
     VectorTools::interpolate_boundary_values (dof_handler,
                                               0,
-                                              ZeroFunction<dim>(),
+                                              Functions::ZeroFunction<dim>(),
                                               constraints);
     constraints.close ();
 
index fa020c674161c3a43b0b2ec8b373154aafa31bf0..5f0a065c92434b102615218758ed84abd62c22d6 100644 (file)
@@ -85,7 +85,7 @@ void test()
   DoFTools::make_hanging_node_constraints (dofh, cm);
 
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   VectorTools::interpolate_boundary_values (dofh,
                                             dirichlet_boundary,
index e1cecb887ff6071e3fd7e863905841c42f41187c..ff3a87fd762cbe96c5889f7eba7a3be1e4f0ca2b 100644 (file)
@@ -57,7 +57,7 @@ void check_fe(FiniteElement<dim> &fe)
   Triangulation<dim> tr(Triangulation<dim>::limit_level_difference_at_vertices);
   GridGenerator::hyper_cube(tr);
   tr.refine_global(2);
-  ZeroFunction<dim> zero;
+  Functions::ZeroFunction<dim> zero;
   typename FunctionMap<dim>::type fmap;
   fmap.insert(std::make_pair(0, &zero));
 
index 51ca1f5943563bfc981d8699a6ca4d5c0fb5764f..a17f4bd6ba07b91eac5f777f55c882e3e36cffc6 100644 (file)
@@ -63,7 +63,7 @@ void check_fe(FiniteElement<dim> &fe)
                                                parallel::distributed::Triangulation<dim>::construct_multigrid_hierarchy);
   setup_tria(tr);
 
-  ZeroFunction<dim> zero;
+  Functions::ZeroFunction<dim> zero;
   typename FunctionMap<dim>::type fmap;
   fmap.insert(std::make_pair(0, &zero));
 
@@ -109,7 +109,7 @@ void check_fe(FiniteElement<dim> &fe)
       }
 
     typename FunctionMap<dim>::type      dirichlet_boundary;
-    ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+    Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
     dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
     mg_constrained_dofs_ref.initialize(dofhref, dirichlet_boundary);
   }
@@ -119,7 +119,7 @@ void check_fe(FiniteElement<dim> &fe)
   MGConstrainedDoFs                    mg_constrained_dofs;
 
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   mg_constrained_dofs.initialize(dofh, dirichlet_boundary);
 
index 05a44f2b0f02b9854ec681587be2a9a2ec0618f1..6475f40ce71f89b7da88f8a26580f0bbb44334bd 100644 (file)
@@ -119,7 +119,7 @@ void check_fe(FiniteElement<dim> &fe)
                                                parallel::distributed::Triangulation<dim>::construct_multigrid_hierarchy);
   setup_tria(tr);
 
-  ZeroFunction<dim> zero;
+  Functions::ZeroFunction<dim> zero;
   typename FunctionMap<dim>::type fmap;
   fmap.insert(std::make_pair(0, &zero));
 
@@ -165,7 +165,7 @@ void check_fe(FiniteElement<dim> &fe)
       }
 
     typename FunctionMap<dim>::type      dirichlet_boundary;
-    ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+    Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
     dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
     mg_constrained_dofs_ref.initialize(dofhref, dirichlet_boundary);
   }
@@ -175,7 +175,7 @@ void check_fe(FiniteElement<dim> &fe)
   MGConstrainedDoFs                    mg_constrained_dofs;
 
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   mg_constrained_dofs.initialize(dofh, dirichlet_boundary);
 
index b1c292d0371c78a7d0f8b32e02cd7bffe9a6b7e0..c603ce93b528d0577efcfec0dec2e993ddbf9ee5 100644 (file)
@@ -69,7 +69,7 @@ void check_fe(FiniteElement<dim> &fe)
   Triangulation<dim> tr(Triangulation<dim>::limit_level_difference_at_vertices);
   GridGenerator::hyper_cube(tr);
   tr.refine_global(2);
-  ZeroFunction<dim> zero;
+  Functions::ZeroFunction<dim> zero;
   typename FunctionMap<dim>::type fmap;
   fmap.insert(std::make_pair(0, &zero));
 
index d3e4aba50577a70693493d7f82a229c3759ff2f3..f007185636fc4b51c7141fb27d4e59ea67b0085d 100644 (file)
@@ -74,7 +74,7 @@ void check_fe(FiniteElement<dim> &fe)
   Triangulation<dim> tr(Triangulation<dim>::limit_level_difference_at_vertices);
   GridGenerator::hyper_cube(tr);
   tr.refine_global(2);
-  ZeroFunction<dim> zero;
+  Functions::ZeroFunction<dim> zero;
   typename FunctionMap<dim>::type fmap;
   fmap.insert(std::make_pair(0, &zero));
 
index 8dfc8f97f704f9c7bef0b9bd3ab61933fb7d0807..9ef64344083e884bd34467dd3fb5b385efdc86ce 100644 (file)
@@ -202,7 +202,7 @@ namespace Step50
     DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
 
     typename FunctionMap<dim>::type      dirichlet_boundary;
-    ConstantFunction<dim>                    homogeneous_dirichlet_bc (0.0);
+    Functions::ConstantFunction<dim>                    homogeneous_dirichlet_bc (0.0);
     dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
     VectorTools::interpolate_boundary_values (mg_dof_handler,
                                               dirichlet_boundary,
index ebc3dfc59e990058285f8e07b9d17498cf3d193b..a74a9bea8211c108a26c8e770e6eaa44f7f07b5b 100644 (file)
@@ -194,7 +194,7 @@ void check_simple(const FiniteElement<dim> &fe)
   Triangulation<dim> tr(Triangulation<dim>::limit_level_difference_at_vertices);
   GridGenerator::hyper_cube(tr,-1,1);
   typename FunctionMap<dim>::type      dirichlet_boundary_functions;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary_functions[0] = &homogeneous_dirichlet_bc;
 
   tr.refine_global (1);
index d6a413b80fc79ffa604fde99e80ef90e8ae01652..e21b0c4e30786f90bb67fe3d35d8934d8e0480bb 100644 (file)
@@ -323,7 +323,7 @@ template <int dim>
 void LaplaceProblem<dim>::test ()
 {
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
+  Functions::ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
   dirichlet_boundary[0] =             &dirichlet_bc;
 
   const unsigned int min_l = mg_matrices.min_level();
index 40006271e87d344f7dc3f24e2a541ceee6246b1d..7416ecc70c9872aa9b42afb1f83cef8bc7da448c 100644 (file)
@@ -275,7 +275,7 @@ template <int dim>
 void LaplaceProblem<dim>::test_boundary ()
 {
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
+  Functions::ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
   dirichlet_boundary[0] =             &dirichlet_bc;
   MGTools::make_boundary_list (mg_dof_handler_renumbered, dirichlet_boundary,
                                boundary_indices_renumbered);
index 56a047b0a9c82137ff98b01595e486a9a2aa4190..22cb38abc2a2d46a75a49237979aa12e42b7ad19 100644 (file)
@@ -326,7 +326,7 @@ template <int dim>
 void LaplaceProblem<dim>::test ()
 {
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
+  Functions::ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
   dirichlet_boundary[0] =             &dirichlet_bc;
 
   MGConstrainedDoFs mg_constrained_dofs;
index 45528dcbf40594246ebd2b3f4d89480d71746ffc..0b3ff42911f8422331e9e83d766dbeb0b2df198e 100644 (file)
@@ -237,7 +237,7 @@ void LaplaceProblem<dim>::setup_system ()
   constraints.clear ();
   DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   MappingQGeneric<dim> mapping(1);
   VectorTools::interpolate_boundary_values (mapping,
index c85967f26fce495cdb348f155f3731899df44590..c0ea10ac69de0449809255d65b91c06c01bbb40a 100644 (file)
@@ -167,7 +167,7 @@ void LaplaceProblem<dim>::setup_system ()
   constraints.clear ();
   DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   MappingQGeneric<dim> mapping(1);
   VectorTools::interpolate_boundary_values (mapping,
index ecaa89d1eff7e694b3e8e4079131cc5edf864f36..d7a40174e7067534ad192426cdf88ee5ea2eeeaf 100644 (file)
@@ -171,7 +171,7 @@ void LaplaceProblem<dim>::setup_system ()
   constraints.clear ();
   DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   MappingQGeneric<dim> mapping(1);
   VectorTools::interpolate_boundary_values (mapping,
index 21ef1c1d78fda09f409c480857d1452af325abd3..a31504e11eb210351cb23c32c4409c59485bee48 100644 (file)
@@ -171,7 +171,7 @@ void LaplaceProblem<dim>::setup_system ()
   DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
   DoFTools::make_hanging_node_constraints (mg_dof_handler, hanging_node_constraints);
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   MappingQGeneric<dim> mapping(1);
   VectorTools::interpolate_boundary_values (mapping,
index 5a3b360c3932a657cd1fc210c53f37d97082f06a..2bfd800e54e0b0f8da0de05ac46e7e109bbd8df1 100644 (file)
@@ -171,7 +171,7 @@ void LaplaceProblem<dim>::setup_system ()
   DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
   DoFTools::make_hanging_node_constraints (mg_dof_handler, hanging_node_constraints);
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   MappingQGeneric<dim> mapping(1);
   VectorTools::interpolate_boundary_values (mapping,
index b26ed6a94535f66ef829bccb69fc494a7173749d..4891a1271bf438488df272941859b2a406a2cf9e 100644 (file)
@@ -175,7 +175,7 @@ void LaplaceProblem<dim>::setup_system ()
   constraints.clear ();
   DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   MappingQGeneric<dim> mapping(1);
   VectorTools::interpolate_boundary_values (mapping,
index 02dd13162e64609534d1ef8fbebb86bb1518212a..7492a89e4aee0c575d3e5f742e5ed75c2ab49be8 100644 (file)
@@ -203,7 +203,7 @@ namespace Step50
     DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
 
     typename FunctionMap<dim>::type      dirichlet_boundary;
-    ZeroFunction<dim>                    homogeneous_dirichlet_bc;
+    Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc;
     dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
     VectorTools::interpolate_boundary_values (mg_dof_handler,
                                               dirichlet_boundary,
index b7f994097e1fabacf5a3a231d17b324e1ad32b2b..33019866440c93f3cc12813f64168beeee117606 100644 (file)
@@ -203,7 +203,7 @@ namespace Step50
     DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
 
     typename FunctionMap<dim>::type      dirichlet_boundary;
-    ZeroFunction<dim>                    homogeneous_dirichlet_bc;
+    Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc;
     dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
     VectorTools::interpolate_boundary_values (mg_dof_handler,
                                               dirichlet_boundary,
index 12701bd47632c936532d9e9c611fff62f70fbe1a..51210ae0540b9b5912956d2d768e1518b82f270c 100644 (file)
@@ -203,7 +203,7 @@ namespace Step50
     DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
 
     typename FunctionMap<dim>::type      dirichlet_boundary;
-    ZeroFunction<dim>                    homogeneous_dirichlet_bc;
+    Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc;
     dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
     VectorTools::interpolate_boundary_values (mg_dof_handler,
                                               dirichlet_boundary,
index 37020dbe602df480100595f7a373821f99135cdd..0268e24d10bcbd806fff6d6524f917ac378bb6d1 100644 (file)
@@ -172,7 +172,7 @@ void LaplaceProblem<dim>::setup_system ()
   constraints.clear ();
   DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   MappingQGeneric<dim> mapping(1);
   VectorTools::interpolate_boundary_values (mapping,
index a2df4adee535b54d54c690077802231389513011..4b6e31edecf8348684c4e7db5f76fb4128eb54cf 100644 (file)
@@ -238,7 +238,7 @@ void LaplaceProblem<dim>::setup_system ()
   constraints.clear ();
   DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   MappingQGeneric<dim> mapping(1);
   VectorTools::interpolate_boundary_values (mapping,
index 47768a89c8482e8568542f15b21aa74e2b0131cd..1fa794068dcc6cc8c144581a558df101eb25a2f8 100644 (file)
@@ -175,7 +175,7 @@ void LaplaceProblem<dim>::setup_system ()
   constraints.clear ();
   DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim>                    homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
   MappingQGeneric<dim> mapping(1);
   VectorTools::interpolate_boundary_values (mapping,
index 201ef59362d8bf80c6ccaf211438bc8453d63723..58b02b58c79546a74e11edbae955aaeaf26d3aa8 100644 (file)
@@ -200,7 +200,7 @@ namespace Step50
     DoFTools::make_hanging_node_constraints (mg_dof_handler, constraints);
 
     typename FunctionMap<dim>::type      dirichlet_boundary;
-    ConstantFunction<dim>                    homogeneous_dirichlet_bc (0.0);
+    Functions::ConstantFunction<dim>                    homogeneous_dirichlet_bc (0.0);
     dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
     VectorTools::interpolate_boundary_values (mg_dof_handler,
                                               dirichlet_boundary,
index 65ba18f9f7bc9077d76f8eb62682fa388c7273fd..5f7999222eb8ae019737932a16e9559aeda536c0 100644 (file)
@@ -112,7 +112,7 @@ void check_fe(FiniteElement<dim> &fe)
     }
 
 
-  ZeroFunction<dim> zero;
+  Functions::ZeroFunction<dim> zero;
   typename FunctionMap<dim>::type fmap;
   fmap.insert(std::make_pair(0, &zero));
 
index c5cb662c4e4a31de8be5acd6152aaea4b8b76986..738cfb5c914ac427c925c427f2202493ca0b5994 100644 (file)
@@ -60,7 +60,7 @@ void check(const unsigned int fe_degree)
       mgdof.distribute_mg_dofs(fe);
 
       MGConstrainedDoFs mg_constrained_dofs;
-      ZeroFunction<dim> zero_function;
+      Functions::ZeroFunction<dim> zero_function;
       typename FunctionMap<dim>::type dirichlet_boundary;
       dirichlet_boundary[0] = &zero_function;
       mg_constrained_dofs.initialize(mgdof, dirichlet_boundary);
index 1269246b8b87c4b584f54086b496fdbb256d4be5..afdf4066e28fcfe061c3e0dc1d0e564e1468780b 100644 (file)
@@ -80,7 +80,7 @@ void check(const unsigned int fe_degree)
       mgdof.distribute_mg_dofs(fe);
 
       MGConstrainedDoFs mg_constrained_dofs;
-      ZeroFunction<dim> zero_function;
+      Functions::ZeroFunction<dim> zero_function;
       typename FunctionMap<dim>::type dirichlet_boundary;
       dirichlet_boundary[0] = &zero_function;
       mg_constrained_dofs.initialize(mgdof, dirichlet_boundary);
index 2f984d2c5a96ece9803921a120fa8fb73c63d6a8..fd70f7b20f045ab6f978858726965ea01e461f7d 100644 (file)
@@ -57,7 +57,7 @@ void check(const unsigned int fe_degree)
       mgdof.distribute_mg_dofs(fe);
 
       MGConstrainedDoFs mg_constrained_dofs;
-      ZeroFunction<dim> zero_function;
+      Functions::ZeroFunction<dim> zero_function;
       typename FunctionMap<dim>::type dirichlet_boundary;
       dirichlet_boundary[0] = &zero_function;
       mg_constrained_dofs.initialize(mgdof, dirichlet_boundary);
index 749e07e1b50210e51f44cd92ca7a3f621f27894e..db0bb7025753acaca675445e0c2a7186d3d1bbeb 100644 (file)
@@ -82,7 +82,7 @@ void check(const unsigned int fe_degree)
       mgdof.distribute_mg_dofs(fe);
 
       MGConstrainedDoFs mg_constrained_dofs;
-      ZeroFunction<dim> zero_function;
+      Functions::ZeroFunction<dim> zero_function;
       typename FunctionMap<dim>::type dirichlet_boundary;
       dirichlet_boundary[0] = &zero_function;
       mg_constrained_dofs.initialize(mgdof, dirichlet_boundary);
index b4a6b07c8b3d6aaea026f226b6f18d21866463c9..8f057b7e77e094c3999d2f30bdee2085e2b1d9b5 100644 (file)
@@ -56,7 +56,7 @@ void check_simple(const FiniteElement<dim> &fe)
   mgdof.distribute_mg_dofs(fe);
 
   typename FunctionMap<dim>::type dirichlet_boundary;
-  ZeroFunction<dim> homogeneous_dirichlet_bc (1);
+  Functions::ZeroFunction<dim> homogeneous_dirichlet_bc (1);
   dirichlet_boundary[0] = &homogeneous_dirichlet_bc;
 
   MGConstrainedDoFs mg_constrained_dofs;
index a0e59a5d9ff9806319e46b0cd61c4e59561d26a7..f0347425f3c34eeb5199254c3815cf0a04dec5a4 100644 (file)
@@ -57,7 +57,7 @@ void check()
       mgdof.distribute_mg_dofs(fe);
 
       MGConstrainedDoFs mg_constrained_dofs;
-      ZeroFunction<dim> zero_function;
+      Functions::ZeroFunction<dim> zero_function;
       typename FunctionMap<dim>::type dirichlet_boundary;
       dirichlet_boundary[0] = &zero_function;
       mg_constrained_dofs.initialize(mgdof, dirichlet_boundary);
index 910928c661f6126338dc703cffdd7771ba151d7c..0a3f3f82de570b3f25afaba4f002387fd971a163 100644 (file)
@@ -144,7 +144,7 @@ void check (const FiniteElement<dim> &fe)
 
   std::vector<std::set<unsigned int> > boundary_indices(tr.n_levels());
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
+  Functions::ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
   dirichlet_boundary[3] =             &dirichlet_bc;
 
   MGConstrainedDoFs mg_constrained_dofs;
index 42f7b68498a6f933c6952e4458dfca17eceb55e3..3cd1786e0f264baf3ec37140f9b7053bc421799c 100644 (file)
@@ -144,7 +144,7 @@ void check (const FiniteElement<dim> &fe)
 
   std::vector<std::set<types::global_dof_index> > boundary_indices(tr.n_levels());
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
+  Functions::ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
   dirichlet_boundary[3] =             &dirichlet_bc;
 
   MGTools::make_boundary_list (mg_dof_handler, dirichlet_boundary,
index e9e5c1e26a2aa82f9ed2984a29fee0729dc6a975..69b7969f6c4686fcddb53b6ee1a2575453bae582 100644 (file)
@@ -144,7 +144,7 @@ void check (const FiniteElement<dim> &fe)
 
   std::vector<std::set<types::global_dof_index> > boundary_indices(tr.n_levels());
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
+  Functions::ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
   dirichlet_boundary[3] =             &dirichlet_bc;
 
   MGTools::make_boundary_list (mg_dof_handler, dirichlet_boundary,
index 715aed59263bd65e48ba03afa8bcea08a4aefafb..ac9743cff46f5411585cd142419d030edf0a7793 100644 (file)
@@ -150,7 +150,7 @@ void check (const FiniteElement<dim> &fe)
 
   std::vector<std::set<types::global_dof_index> > boundary_indices(tr.n_levels());
   typename FunctionMap<dim>::type      dirichlet_boundary;
-  ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
+  Functions::ZeroFunction<dim>                    dirichlet_bc(fe.n_components());
   dirichlet_boundary[3] =             &dirichlet_bc;
 
   MGTools::make_boundary_list (mg_dof_handler, dirichlet_boundary,
index 8af0c09db64fac0014e58dab522ab57d530f2b81..5a101308058b8252f8d69586e4ebac3cd4f5f6ab 100644 (file)
@@ -74,7 +74,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ConstantFunction<dim>(1,1.),
+                                           Functions::ConstantFunction<dim>(1,1.),
                                            constraints);
   constraints.close ();
 
index a885377b033e08b362f3349ae94a75b7f9ef2e8f..3c18e2dea9185f2ea6b1dc306789f5029e9f3407 100644 (file)
@@ -75,7 +75,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ConstantFunction<dim>(1.,2),
+                                           Functions::ConstantFunction<dim>(1.,2),
                                            constraints);
   constraints.close ();
 
index 92489fa3880f8a1dc8deae8d3ead2cf2f496a0bb..17c7fb9526f48959de7ed7901a7bf62f1d19e5f5 100644 (file)
@@ -76,7 +76,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ZeroFunction<dim>(2),
+                                           Functions::ZeroFunction<dim>(2),
                                            constraints);
   constraints.close ();
 
index 1487c09d701a39458329eb33d620d2183e9c35f3..a3fb65733722f22197e74eee0de93b90b0c466bd 100644 (file)
@@ -74,7 +74,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ConstantFunction<dim>(1,1.),
+                                           Functions::ConstantFunction<dim>(1,1.),
                                            constraints);
   constraints.close ();
 
index 5a35b42c4ab8820a5db2009299a354117c218697..947088f2a9e3e5240b910d5108d47c51b6630eba 100644 (file)
@@ -75,7 +75,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ConstantFunction<dim>(1.,2),
+                                           Functions::ConstantFunction<dim>(1.,2),
                                            constraints);
   constraints.close ();
 
index 7aa4b0ba48241e3e32f4e662c840923fd486f8a3..872f4e04225f894369a0998375a0eaa66bd19b18 100644 (file)
@@ -74,7 +74,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ConstantFunction<dim>(1,1.),
+                                           Functions::ConstantFunction<dim>(1,1.),
                                            constraints);
   constraints.close ();
 
index 70b8f0c8d5aae7a2a3eea4de67133e450fe85055..5130c0f63640408fef3a3b7961b2647a4893ee85 100644 (file)
@@ -75,7 +75,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ConstantFunction<dim>(1.,2),
+                                           Functions::ConstantFunction<dim>(1.,2),
                                            constraints);
   constraints.close ();
 
index fb709fa9771162b52fb86e417c18c75e2ecd6e00..8e98a68fbfe17c964bd4d1cca8bcc3d9e0349546 100644 (file)
@@ -76,7 +76,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ZeroFunction<dim>(2),
+                                           Functions::ZeroFunction<dim>(2),
                                            constraints);
   constraints.close ();
 
index 446ae99ed75660215d4f2bed8f9d53c727c23cf1..aaad57b1a641b92137ae4e377ea4f75f7b0f91af 100644 (file)
@@ -74,7 +74,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ConstantFunction<dim>(1,1.),
+                                           Functions::ConstantFunction<dim>(1,1.),
                                            constraints);
   constraints.close ();
 
index 4c14bbdf4090fca64acdd646b86c53d14578380a..bc4f018044f31202cbfa0cba7e677c1fb18e12db 100644 (file)
@@ -75,7 +75,7 @@ check ()
   ConstraintMatrix constraints;
   DoFTools::make_hanging_node_constraints (dof, constraints);
   VectorTools::interpolate_boundary_values(dof, 0,
-                                           ConstantFunction<dim>(1.,2),
+                                           Functions::ConstantFunction<dim>(1.,2),
                                            constraints);
   constraints.close ();
 
index 1e10ccee0c37fb59c2e788c057ddd53516843a3d..d5f580cc86309c8f9ea3880eb312b6e2f3b237e5 100644 (file)
@@ -41,7 +41,7 @@ void test (const Triangulation<dim> &tr,
   DoFHandler<dim> dof(tr);
   dof.distribute_dofs(fe);
 
-  ConstantFunction<dim> constant_function(1.,dim);
+  Functions::ConstantFunction<dim> constant_function(1.,dim);
   typename FunctionMap<dim>::type function_map;
   for (unsigned int j=0; j<GeometryInfo<dim>::faces_per_cell; ++j)
     function_map[j] = &constant_function;
index 804a5a4ceaf3f0993d47ef76a5c5b79c1f214e30..e55251c9475b09d491c65f95a5402d471509c25a 100644 (file)
@@ -42,7 +42,7 @@ void test (const Triangulation<dim> &tr,
   DoFHandler<dim> dof(tr);
   dof.distribute_dofs(fe);
 
-  ConstantFunction<dim> constant_function(1.,dim);
+  Functions::ConstantFunction<dim> constant_function(1.,dim);
   typename FunctionMap<dim>::type function_map;
   for (unsigned int j=0; j<GeometryInfo<dim>::faces_per_cell; ++j)
     function_map[j] = &constant_function;
index b522455867550f69aceea25c96631bf816a17eae..9ee398c44dff924f17a5959697fd5f9dc6adcf34 100644 (file)
@@ -439,7 +439,7 @@ namespace Step18
     VectorTools::
     interpolate_boundary_values (dof_handler,
                                  0,
-                                 ZeroFunction<dim> (dim),
+                                 Functions::ZeroFunction<dim> (dim),
                                  boundary_values);
     VectorTools::
     interpolate_boundary_values (dof_handler,
index fd8ead766dd5871c087cb4cf86f1644b8978d364..ecf494df5763ae1934c6f082635151129100f99f 100644 (file)
@@ -466,7 +466,7 @@ namespace Step18
     VectorTools::
     interpolate_boundary_values (dof_handler,
                                  0,
-                                 ZeroFunction<dim> (dim),
+                                 Functions::ZeroFunction<dim> (dim),
                                  boundary_values);
     VectorTools::
     interpolate_boundary_values (dof_handler,
index ed1174fac464f0f114c0465088fc215e71ee2338..00c314badfc2df0a8d5f192242af9a58d8dee70e 100644 (file)
@@ -1702,13 +1702,13 @@ namespace Step44
       if (apply_dirichlet_bc == true)
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(x_displacement));
       else
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(x_displacement));
     }
@@ -1717,13 +1717,13 @@ namespace Step44
       if (apply_dirichlet_bc == true)
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(y_displacement));
       else
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(y_displacement));
     }
@@ -1735,7 +1735,7 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -1743,7 +1743,7 @@ namespace Step44
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -1754,13 +1754,13 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      fe.component_mask(z_displacement));
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      fe.component_mask(z_displacement));
         }
@@ -1769,7 +1769,7 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -1777,7 +1777,7 @@ namespace Step44
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -1791,13 +1791,13 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
         }
@@ -1806,13 +1806,13 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
         }
index 9ea4e0164dea71528be7b0cce4790d19ee7ca730..f2c00743e1c074178d68bda60d369d12804e6487 100644 (file)
@@ -1588,13 +1588,13 @@ namespace Step44
       if (apply_dirichlet_bc == true)
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(x_displacement));
       else
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(x_displacement));
     }
@@ -1603,13 +1603,13 @@ namespace Step44
       if (apply_dirichlet_bc == true)
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(y_displacement));
       else
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(y_displacement));
     }
@@ -1621,7 +1621,7 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -1629,7 +1629,7 @@ namespace Step44
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -1640,13 +1640,13 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      fe.component_mask(z_displacement));
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      fe.component_mask(z_displacement));
         }
@@ -1655,7 +1655,7 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -1663,7 +1663,7 @@ namespace Step44
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -1677,13 +1677,13 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
         }
@@ -1692,13 +1692,13 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
         }
index f397757ed643c9e72bf9479f8a0ace594b776b5e..5d7edaf57a4ab69de6910283721347201ee8f0a6 100644 (file)
@@ -1605,13 +1605,13 @@ namespace Step44
       if (apply_dirichlet_bc == true)
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(x_displacement));
       else
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(x_displacement));
     }
@@ -1620,13 +1620,13 @@ namespace Step44
       if (apply_dirichlet_bc == true)
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(y_displacement));
       else
         VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                  boundary_id,
-                                                 ZeroFunction<dim>(n_components),
+                                                 Functions::ZeroFunction<dim>(n_components),
                                                  constraints,
                                                  fe.component_mask(y_displacement));
     }
@@ -1638,7 +1638,7 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -1646,7 +1646,7 @@ namespace Step44
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -1657,13 +1657,13 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      fe.component_mask(z_displacement));
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      fe.component_mask(z_displacement));
         }
@@ -1672,7 +1672,7 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -1680,7 +1680,7 @@ namespace Step44
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)
                                                       |
@@ -1694,13 +1694,13 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
         }
@@ -1709,13 +1709,13 @@ namespace Step44
           if (apply_dirichlet_bc == true)
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
           else
             VectorTools::interpolate_boundary_values(dof_handler_ref,
                                                      boundary_id,
-                                                     ZeroFunction<dim>(n_components),
+                                                     Functions::ZeroFunction<dim>(n_components),
                                                      constraints,
                                                      (fe.component_mask(x_displacement)));
         }
index 36ba5096c08bb4cf880fe784b91c80ee16394e70..96e5ec7ffe3c8b9597957f2cd4c91d21746d1da6 100644 (file)
@@ -141,12 +141,12 @@ void LaplaceProblem<dim>::assemble_and_solve ()
                                       system_matrix);
   VectorTools::create_right_hand_side (mapping, dof_handler,
                                        QGauss<dim>(gauss_degree),
-                                       ConstantFunction<dim>(-2),
+                                       Functions::ConstantFunction<dim>(-2),
                                        system_rhs);
   Vector<double> tmp (system_rhs.size());
   VectorTools::create_boundary_right_hand_side (mapping, dof_handler,
                                                 QGauss<dim-1>(gauss_degree),
-                                                ConstantFunction<dim>(1),
+                                                Functions::ConstantFunction<dim>(1),
                                                 tmp);
   system_rhs += tmp;
 
@@ -159,7 +159,7 @@ void LaplaceProblem<dim>::assemble_and_solve ()
   Vector<float> norm_per_cell (triangulation.n_active_cells());
   VectorTools::integrate_difference (mapping, dof_handler,
                                      solution,
-                                     ZeroFunction<dim>(),
+                                     Functions::ZeroFunction<dim>(),
                                      norm_per_cell,
                                      QGauss<dim>(gauss_degree+1),
                                      VectorTools::H1_seminorm);
index 12486e225034d9f8254cfedaa3670ad032f83a12..3a270d25b45164a2528ca0493b066d987d74f578 100644 (file)
@@ -110,7 +110,7 @@ void test (std::string solver_name,
   dealii::DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
   dealii::VectorTools::interpolate_boundary_values (dof_handler,
                                                     0,
-                                                    dealii::ZeroFunction<dim> (),
+                                                    dealii::Functions::ZeroFunction<dim> (),
                                                     constraints);
   constraints.close ();
 
index 552c0e7e041db5a14b0439042bc01bbcae027897..ff207174c3e6ee2bc71d345244a4b1b1af1c635a 100644 (file)
@@ -110,7 +110,7 @@ void test (std::string solver_name,
   dealii::DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
   dealii::VectorTools::interpolate_boundary_values (dof_handler,
                                                     0,
-                                                    dealii::ZeroFunction<dim> (),
+                                                    dealii::Functions::ZeroFunction<dim> (),
                                                     constraints);
   constraints.close ();
 
index d40ba7d1a253cd5d0f1032ebdf800f99b594cb56..62e15cc8f02dd9f7c5cccf2cf4c35f966ce4f8bc 100644 (file)
@@ -110,7 +110,7 @@ void test (std::string solver_name,
   dealii::DoFTools::make_hanging_node_constraints  (dof_handler, constraints);
   dealii::VectorTools::interpolate_boundary_values (dof_handler,
                                                     0,
-                                                    dealii::ZeroFunction<dim> (),
+                                                    dealii::Functions::ZeroFunction<dim> (),
                                                     constraints);
   constraints.close ();
 
index 04778bd2a1248c727a2a96e54978ff307d374298..a236ec3af945ef2d035f884375047d229f024eee 100644 (file)
@@ -200,7 +200,7 @@ void Test_Solver_Output::setup_system()
   DoFTools::make_hanging_node_constraints(dof_handler, constraints);
   VectorTools::interpolate_boundary_values(dof_handler,
                                            0,
-                                           ZeroFunction<2>(),
+                                           Functions::ZeroFunction<2>(),
                                            constraints);
   constraints.close();
 
index 482b04d482de89679c8a3955e05c7259fed672f4..34a34b443cfd61e40b5fbcdf8fc21d3a174caf84 100644 (file)
@@ -166,7 +166,7 @@ void test ()
   std::map<types::global_dof_index,double> boundary_values;
   VectorTools::interpolate_boundary_values (dof_handler,
                                             0,
-                                            ZeroFunction<dim>(size.size()),
+                                            Functions::ZeroFunction<dim>(size.size()),
                                             boundary_values);
   MatrixTools::apply_boundary_values (boundary_values, Bb, bx, bb);
   MatrixTools::apply_boundary_values (boundary_values, B, x, b);
index c88e5fa14fd157344c075f98f9c85f20aa550a35..3814f96155ba3f39b0c9a5ecdd0780c92b1499b0 100644 (file)
@@ -72,7 +72,7 @@ void test(VectorTools::NormType norm, double value)
   Vector<double> cellwise_errors (tria.n_active_cells());
   VectorTools::integrate_difference (dofh,
                                      solution,
-                                     ZeroFunction<dim>(dim),
+                                     Functions::ZeroFunction<dim>(dim),
                                      cellwise_errors,
                                      QGauss<dim>(5),
                                      norm);
index 994292aaff7f76d03f61799408a315f003682fb3..bec96b7b22fa6407b23b280a435f424903a0000e 100644 (file)
@@ -78,7 +78,7 @@ void test(VectorTools::NormType norm, double value, double exp = 2.0)
   const dealii::Function<dim,double> *w = nullptr;
   VectorTools::integrate_difference (dofh,
                                      solution,
-                                     ZeroFunction<dim>(dim),
+                                     Functions::ZeroFunction<dim>(dim),
                                      cellwise_errors,
                                      quadrature,
                                      norm,
index 6c74729f074bb96e3e54eae4b0f61ed89b89d7cb..7f979603de162fff6b297df0fb49bf9d0a501cbd 100644 (file)
@@ -86,7 +86,7 @@ void test(VectorTools::NormType norm, double value, double exp = 2.0)
   const dealii::Function<dim,double> *w = nullptr;
   VectorTools::integrate_difference (dofh,
                                      solution,
-                                     ZeroFunction<dim>(dim),
+                                     Functions::ZeroFunction<dim>(dim),
                                      cellwise_errors,
                                      quadrature,
                                      norm,
index 9ba8a56ef88072e8dc38b916dcceb6e8297daad4..c38ee70b9bde54865d056a873699023965ee9927 100644 (file)
@@ -86,7 +86,7 @@ void test(VectorTools::NormType norm, double value, double exp = 2.0)
   const dealii::Function<dim,double> *w = nullptr;
   VectorTools::integrate_difference (dofh,
                                      solution,
-                                     ZeroFunction<dim>(dim),
+                                     Functions::ZeroFunction<dim>(dim),
                                      cellwise_errors,
                                      quadrature,
                                      norm,
index 2cad4420dcdd21c61a12a6c5559d1c3a827aa4e2..e998a1d301abbb1678406f72dfd372e1a149d752 100644 (file)
@@ -93,7 +93,7 @@ void test(VectorTools::NormType norm, double value, double exp = 2.0)
   const dealii::Function<dim,double> *w = nullptr;
   VectorTools::integrate_difference (dofh,
                                      solution,
-                                     ZeroFunction<dim>(dim),
+                                     Functions::ZeroFunction<dim>(dim),
                                      cellwise_errors,
                                      quadrature,
                                      norm,
index 4e1cf5d7b69588f148f8075faa4ebde683c7632a..eb22fbcbf838ed2baaa66faaa4edc0f34c3145ac 100644 (file)
@@ -107,7 +107,7 @@ void test(VectorTools::NormType norm, double value, double exp = 2.0)
   const dealii::Function<dim,double> *w = nullptr;
   VectorTools::integrate_difference (dofh,
                                      solution,
-                                     ZeroFunction<dim>(dim),
+                                     Functions::ZeroFunction<dim>(dim),
                                      cellwise_errors,
                                      quadrature,
                                      norm,

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.