]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Exchange vectors in std::vector::swap() 7965/head
authorDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Thu, 25 Apr 2019 18:36:03 +0000 (20:36 +0200)
committerDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Thu, 25 Apr 2019 18:36:03 +0000 (20:36 +0200)
examples/step-18/step-18.cc

index 035991a0208a196547dff77cc5199a7976326a18..cef0f64dde256b1d539fa0605df6b9ead9305997 100644 (file)
@@ -1639,7 +1639,7 @@ namespace Step18
     // includes setting the stress variables to zero.
     {
       std::vector<PointHistory<dim>> tmp;
-      tmp.swap(quadrature_point_history);
+      quadrature_point_history.swap(tmp);
     }
     quadrature_point_history.resize(our_cells * quadrature_formula.size());
 

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.