From: Wolfgang Bangerth Date: Thu, 3 Aug 2017 12:54:46 +0000 (-0600) Subject: Simplify some code. X-Git-Tag: v9.0.0-rc1~1370^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a30e6c64935fdd98adbf917cd3d925308d5bf849;p=dealii.git Simplify some code. If you can write code in one line instead of two, then that's worth it :-) --- diff --git a/source/fe/fe_tools.cc b/source/fe/fe_tools.cc index d5a640f305..df9ba2c500 100644 --- a/source/fe/fe_tools.cc +++ b/source/fe/fe_tools.cc @@ -2917,13 +2917,10 @@ namespace FETools void hierarchic_to_lexicographic_numbering (unsigned int degree, std::vector &h2l) { - // number of support points in each - // direction + // number of support points in each direction const unsigned int n = degree+1; - unsigned int dofs_per_cell = n; - for (unsigned int i=1; i(n); // Assert size maches degree AssertDimension (h2l.size(), dofs_per_cell);