]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
change of the declaration of strain_tensor in two functions
authorfrohne <frohne@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 28 Feb 2013 21:30:27 +0000 (21:30 +0000)
committerfrohne <frohne@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 28 Feb 2013 21:30:27 +0000 (21:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@28650 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 79ca13e053e96a92343fea03d5f9aaa8ce05a675..46d9e68660752865f0a34adc61fe7744d2150b36 100644 (file)
@@ -340,14 +340,14 @@ namespace Step42
                      MPI_Comm _mpi_communicator,
                      ConditionalOStream _pcout);
 
-    void plast_linear_hardening (SymmetricTensor<4,dim> &stress_strain_tensor,
-                                 SymmetricTensor<2,dim> &strain_tensor,
-                                 unsigned int            &elast_points,
-                                 unsigned int            &plast_points,
-                                 double                  &yield);
-    void linearized_plast_linear_hardening (SymmetricTensor<4,dim> &stress_strain_tensor_linearized,
-                                            SymmetricTensor<4,dim> &stress_strain_tensor,
-                                            SymmetricTensor<2,dim> &strain_tensor);
+    void plast_linear_hardening (SymmetricTensor<4,dim>          &stress_strain_tensor,
+                                 const SymmetricTensor<2,dim> &strain_tensor,
+                                 unsigned int                    &elast_points,
+                                 unsigned int                    &plast_points,
+                                 double                          &yield);
+    void linearized_plast_linear_hardening (SymmetricTensor<4,dim>              &stress_strain_tensor_linearized,
+                                            SymmetricTensor<4,dim>              &stress_strain_tensor,
+                                            const SymmetricTensor<2,dim> &strain_tensor);
     inline SymmetricTensor<2,dim> get_strain (const FEValues<dim> &fe_values,
                                               const unsigned int  shape_func,
                                               const unsigned int  q_point) const;
@@ -396,11 +396,11 @@ namespace Step42
   }
 
   template <int dim>
-  void ConstitutiveLaw<dim>::plast_linear_hardening (SymmetricTensor<4,dim> &stress_strain_tensor,
-                                                     SymmetricTensor<2,dim> &strain_tensor,
-                                                     unsigned int            &elast_points,
-                                                     unsigned int            &plast_points,
-                                                     double                  &yield)
+  void ConstitutiveLaw<dim>::plast_linear_hardening (SymmetricTensor<4,dim>      &stress_strain_tensor,
+                                                     const SymmetricTensor<2,dim> &strain_tensor,
+                                                     unsigned int                &elast_points,
+                                                     unsigned int                &plast_points,
+                                                     double                      &yield)
   {
     if (dim == 3)
       {
@@ -429,9 +429,9 @@ namespace Step42
   }
 
   template <int dim>
-  void ConstitutiveLaw<dim>::linearized_plast_linear_hardening (SymmetricTensor<4,dim> &stress_strain_tensor_linearized,
-      SymmetricTensor<4,dim> &stress_strain_tensor,
-      SymmetricTensor<2,dim> &strain_tensor)
+  void ConstitutiveLaw<dim>::linearized_plast_linear_hardening (SymmetricTensor<4,dim>                  &stress_strain_tensor_linearized,
+                                                                                                                               SymmetricTensor<4,dim>           &stress_strain_tensor,
+                                                                                                                               const SymmetricTensor<2,dim> &strain_tensor)
   {
     if (dim == 3)
       {

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.