]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix yield and cell_number as unsigned int instead of double
authorfrohne <frohne@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Feb 2013 16:28:13 +0000 (16:28 +0000)
committerfrohne <frohne@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Feb 2013 16:28:13 +0000 (16:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@28511 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 16dd036a89ad1571352edf3c951480da685a932a..b18e2307068f922b2dbfe36de8df85b5e21d36d4 100644 (file)
@@ -344,7 +344,7 @@ namespace Step42
                                  SymmetricTensor<2,dim> &strain_tensor,
                                  unsigned int            &elast_points,
                                  unsigned int            &plast_points,
-                                 double                  &yield);
+                                 unsigned int            &yield);
     void linearized_plast_linear_hardening (SymmetricTensor<4,dim> &stress_strain_tensor_linearized,
                                             SymmetricTensor<4,dim> &stress_strain_tensor,
                                             SymmetricTensor<2,dim> &strain_tensor);
@@ -400,7 +400,7 @@ namespace Step42
                                                      SymmetricTensor<2,dim> &strain_tensor,
                                                      unsigned int            &elast_points,
                                                      unsigned int            &plast_points,
-                                                     double                  &yield)
+                                                     unsigned int            &yield)
   {
     if (dim == 3)
       {
@@ -894,8 +894,8 @@ namespace Step42
 
     unsigned int elast_points = 0;
     unsigned int plast_points = 0;
-    double       yield = 0;
-    double       cell_number = 0;
+    unsigned int yield = 0;
+    unsigned int cell_number = 0;
     cell_constitution = 0;
 
     for (; cell!=endc; ++cell)
@@ -1497,6 +1497,7 @@ namespace Step42
 
         setup_system ();
 
+
         computing_timer.exit_section("Mesh refinement and setup system");
 
         solve_newton ();

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.