]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not inspect an object that has been moved from. 11397/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 19 Dec 2020 04:27:56 +0000 (21:27 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 19 Dec 2020 04:30:04 +0000 (21:30 -0700)
tests/particles/particle_03.cc
tests/particles/particle_03.output

index 26795fe6261ea9eb9eb3333c4a0980b6a8390baa..8979068fe4a2f973624dfb7e59e40a0e1a2a3015 100644 (file)
@@ -66,9 +66,6 @@ test()
 
     const Particles::Particle<2> moved_particle(std::move(particle));
 
-    deallog << "Old particle has properties after move: "
-            << particle.has_properties() << std::endl;
-
     deallog << "Moved particle properties: "
             << std::vector<double>(moved_particle.get_properties().begin(),
                                    moved_particle.get_properties().end())
index 1f1af1dc1239cd5809f54affaffc8c3ffdae5aba..7da6a800345cdb3b927a551170526e7ffb6762ab 100644 (file)
@@ -2,6 +2,5 @@
 DEAL::Particle properties: 0.150000 0.450000 0.750000
 DEAL::Copy particle properties: 0.150000 0.450000 0.750000
 DEAL::Old particle has properties before move: 1
-DEAL::Old particle has properties after move: 0
 DEAL::Moved particle properties: 0.150000 0.450000 0.750000
 DEAL::OK

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.