]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use a delegating constructor. 15906/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 23 Aug 2023 02:07:48 +0000 (20:07 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 23 Aug 2023 02:10:23 +0000 (20:10 -0600)
include/deal.II/lac/affine_constraints.h

index 8c1036bcb9d615ee3f8c65c6e9974b2467a5c5af..745130c139c1c2c59ae224f8e2fe005740be23aa 100644 (file)
@@ -2038,15 +2038,8 @@ private:
 
 template <typename number>
 inline AffineConstraints<number>::AffineConstraints()
-  : lines()
-  , local_lines()
-  , sorted(false)
-{
-  // make sure the IndexSet is compressed. Otherwise this can lead to crashes
-  // that are hard to find (only happen in release mode).
-  // see tests/mpi/affine_constraints_crash_01
-  local_lines.compress();
-}
+  : AffineConstraints<number>(IndexSet())
+{}
 
 
 

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.