]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix another missing 'const'. 16945/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 1 May 2024 08:11:16 +0000 (13:41 +0530)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 1 May 2024 08:11:16 +0000 (13:41 +0530)
examples/step-3/step-3.cc

index 26ca45999cb28efc8ada9d9830df0aabee2f0f45..47402656bc006da507a170e3895de368dd5340eb 100644 (file)
@@ -262,7 +262,7 @@ void Step3::assemble_system()
   // 2d. This quadrature formula integrates polynomials of degrees up to three
   // exactly (in 1d). It is easy to check that this is sufficient for the
   // present problem:
-  QGauss<2> quadrature_formula(fe.degree + 1);
+  const QGauss<2> quadrature_formula(fe.degree + 1);
   // And we initialize the object which we have briefly talked about above. It
   // needs to be told which finite element we want to use, and the quadrature
   // points and their weights (jointly described by a Quadrature object). As

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.