From bbc53c3e727e4cdb6edd6e309a02178041d0a38a Mon Sep 17 00:00:00 2001 From: frohne Date: Thu, 21 Feb 2013 16:28:13 +0000 Subject: [PATCH] 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 --- deal.II/examples/step-42/step-42.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 (); -- 2.39.5