From a30e6c64935fdd98adbf917cd3d925308d5bf849 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 3 Aug 2017 06:54:46 -0600 Subject: [PATCH] Simplify some code. If you can write code in one line instead of two, then that's worth it :-) --- source/fe/fe_tools.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); -- 2.39.5