From: Wolfgang Bangerth Date: Mon, 4 Jan 2021 22:26:52 +0000 (-0700) Subject: Be consistent in the spelling and use of 'unsigned int'. X-Git-Tag: v9.3.0-rc1~684^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82d3253bd588f0680d898625fc7434db0182a6fb;p=dealii.git Be consistent in the spelling and use of 'unsigned int'. --- diff --git a/examples/step-74/step-74.cc b/examples/step-74/step-74.cc index d8beb3cab9..d679ec258a 100644 --- a/examples/step-74/step-74.cc +++ b/examples/step-74/step-74.cc @@ -166,10 +166,10 @@ namespace Step74 const Vector & solution, std::vector & jump) { - const unsigned n_q = fe_iv.n_quadrature_points; + const unsigned int n_q = fe_iv.n_quadrature_points; std::array, 2> face_values; jump.resize(n_q); - for (unsigned i = 0; i < 2; ++i) + for (unsigned int i = 0; i < 2; ++i) { face_values[i].resize(n_q); fe_iv.get_fe_face_values(i).get_function_values(solution, @@ -184,10 +184,10 @@ namespace Step74 const Vector & solution, std::vector> & gradient_jump) { - const unsigned n_q = fe_iv.n_quadrature_points; + const unsigned int n_q = fe_iv.n_quadrature_points; std::vector> face_gradients[2]; gradient_jump.resize(n_q); - for (unsigned i = 0; i < 2; ++i) + for (unsigned int i = 0; i < 2; ++i) { face_gradients[i].resize(n_q); fe_iv.get_fe_face_values(i).get_function_gradients(solution, @@ -202,7 +202,7 @@ namespace Step74 const double cell_extend_left, const double cell_extend_right) { - const double degree = std::max(1, fe_degree); + const unsigned int degree = std::max(1U, fe_degree); return degree * (degree + 1.) * 0.5 * (1. / cell_extend_left + 1. / cell_extend_right); } @@ -263,7 +263,7 @@ namespace Step74 double compute_energy_norm(); Triangulation triangulation; - const unsigned degree; + const unsigned int degree; const QGauss quadrature; const QGauss face_quadrature; const QGauss quadrature_overintegration;