]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Replace a few deprecated functions.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 18 Jan 2013 13:58:41 +0000 (13:58 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 18 Jan 2013 13:58:41 +0000 (13:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@28127 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/derivatives.cc
tests/fe/derivatives_face.cc
tests/fe/mapping_q1_eulerian.cc
tests/fe/shapes.h

index ac9639c1c539953fee3a16f223eb5818c5e4882e..dbe296ccb38ba24636bc263257acfdcae3cea2bf 100644 (file)
@@ -55,7 +55,7 @@ plot_derivatives(Mapping<dim>& mapping,
              for (unsigned int i=0;i<finel.dofs_per_cell;++i)
                {
                  deallog << "\tGrad " << fe.shape_grad(i,k);
-                 deallog << "\t2nd " << fe.shape_2nd_derivative(i,k);
+                 deallog << "\t2nd " << fe.shape_hessian(i,k);
                  deallog << std::endl;
                }
              k++;
index ecf95ca03ad60eb1f14360fb350d7472f3274da9..1807f906fcc9c60f89e4f6357a4c776ff78aef65 100644 (file)
@@ -50,7 +50,7 @@ plot_derivatives(Mapping<dim>& mapping,
          for (unsigned int i=0;i<finel.dofs_per_cell;++i)
            {
              deallog << "\tGrad " << fe.shape_grad(i,k);
-             deallog << "\t2nd " << fe.shape_2nd_derivative(i,k);
+             deallog << "\t2nd " << fe.shape_hessian(i,k);
              deallog << std::endl;
            }
        }
index 678b0d7a2c610d11561235193b775c5a20b470a4..00b09a0315d53664fae6be7f49fed729eb88fd78 100644 (file)
@@ -66,7 +66,7 @@ show_values(FiniteElement<dim>& fe,
        {
          deallog << "Values: " << fe_values.shape_value(i,k);
          deallog << ",  Grad: " << fe_values.shape_grad(i,k);
-         deallog << ",  2nd: " << fe_values.shape_2nd_derivative(i,k);
+         deallog << ",  2nd: " << fe_values.shape_hessian(i,k);
          deallog << std::endl;
        }
     }
index e93c166733b4cf4a622e0e1cd203fa6c5bb5c1cf..68127c9151d6d0bd2e3f8d2620859b2792375ccf 100644 (file)
@@ -76,13 +76,13 @@ plot_shape_functions(Mapping<dim>& mapping,
                                (fe.shape_grad(i,k) ==
                                 fe.shape_grad_component(i,k,c))
                                &&
-                               (fe.shape_2nd_derivative(i,k) ==
-                                fe.shape_2nd_derivative_component(i,k,c)),
+                               (fe.shape_hessian(i,k) ==
+                                fe.shape_hessian_component(i,k,c)),
                                ExcInternalError())
                      else
                        Assert ((fe.shape_value_component(i,k,c) == 0) &&
                                (fe.shape_grad_component(i,k,c) == Tensor<1,dim>()) &&
-                               (fe.shape_2nd_derivative_component(i,k,c) == Tensor<2,dim>()),
+                               (fe.shape_hessian_component(i,k,c) == Tensor<2,dim>()),
                                ExcInternalError());
                    };
                }
@@ -161,7 +161,7 @@ plot_face_shape_functions(
                                Assert((fe.shape_grad(i,k) == fe.shape_grad_component(i,k,c)),
                                       ExcInternalError());
                              if (uflags & update_hessians)
-                               Assert((fe.shape_2nd_derivative(i,k) == fe.shape_2nd_derivative_component(i,k,c)),
+                               Assert((fe.shape_hessian(i,k) == fe.shape_hessian_component(i,k,c)),
                                       ExcInternalError());
                            }
                          else
@@ -173,7 +173,7 @@ plot_face_shape_functions(
                                Assert ((fe.shape_grad_component(i,k,c) == Tensor<1,dim>()),
                                        ExcInternalError());
                              if (uflags & update_hessians)
-                               Assert ((fe.shape_2nd_derivative_component(i,k,c) == Tensor<2,dim>()),
+                               Assert ((fe.shape_hessian_component(i,k,c) == Tensor<2,dim>()),
                                        ExcInternalError());
                            }
                        }
@@ -221,8 +221,8 @@ plot_face_shape_functions(
                                    }
                                  if (uflags & update_hessians)
                                    {
-                                     const Tensor<2,dim> s1 = sub.shape_2nd_derivative(i,k),
-                                                         s2 = sub.shape_2nd_derivative_component(i,k,c);
+                                     const Tensor<2,dim> s1 = sub.shape_hessian(i,k),
+                                                         s2 = sub.shape_hessian_component(i,k,c);
                                      Assert (s1 == s2, ExcInternalError());
                                    }
                                }
@@ -235,7 +235,7 @@ plot_face_shape_functions(
                                    Assert ((sub.shape_grad_component(i,k,c) == Tensor<1,dim>()),
                                            ExcInternalError());
                                  if (uflags & update_hessians)
-                                   Assert ((sub.shape_2nd_derivative_component(i,k,c) == Tensor<2,dim>()),
+                                   Assert ((sub.shape_hessian_component(i,k,c) == Tensor<2,dim>()),
                                            ExcInternalError());
                                }
                            };
@@ -326,7 +326,7 @@ check_values_and_derivatives (const FiniteElement<dim> &fe,
       {
         for (unsigned int c=0; c<fe.n_components(); ++c)
           {
-            Tensor<2,dim> tmp=fe_values.shape_2nd_derivative_component(i,x,c);
+            Tensor<2,dim> tmp=fe_values.shape_hessian_component(i,x,c);
             tmp -= fe.shape_grad_grad_component(i,q.point(x),c);
             for (unsigned int j=0; j<dim; ++j)
               for (unsigned int k=0; k<dim; ++k)
@@ -342,11 +342,11 @@ check_values_and_derivatives (const FiniteElement<dim> &fe,
         if (fe.is_primitive(i))
           for (unsigned int c=0; c<fe.n_components(); ++c)
             Assert (((c == fe.system_to_component_index(i).first) &&
-                     (fe_values.shape_2nd_derivative(i,x) ==
-                      fe_values.shape_2nd_derivative_component(i,x,c)))
+                     (fe_values.shape_hessian(i,x) ==
+                      fe_values.shape_hessian_component(i,x,c)))
                     ||
                     ((c != fe.system_to_component_index(i).first) &&
-                     (fe_values.shape_2nd_derivative_component(i,x,c) == Tensor<2,dim>())),
+                     (fe_values.shape_hessian_component(i,x,c) == Tensor<2,dim>())),
                     ExcInternalError());
       }
 }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.