From: frohne Date: Thu, 21 Feb 2013 16:28:13 +0000 (+0000) Subject: fix yield and cell_number as unsigned int instead of double X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbc53c3e727e4cdb6edd6e309a02178041d0a38a;p=dealii-svn.git fix yield and cell_number as unsigned int instead of double git-svn-id: https://svn.dealii.org/trunk@28511 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-42/step-42.cc b/deal.II/examples/step-42/step-42.cc index 16dd036a89..b18e230706 100644 --- a/deal.II/examples/step-42/step-42.cc +++ b/deal.II/examples/step-42/step-42.cc @@ -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 ();