]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify the last AssertThrow 6405/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 1 May 2018 10:54:15 +0000 (12:54 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 1 May 2018 10:54:53 +0000 (12:54 +0200)
source/particles/particle_handler.cc

index c2a4305a940a3c0dda5d0aa84c751d765d788852..3bc443bbd9f829f4a194cbbf4615aa9ff1845ffe 100644 (file)
@@ -837,7 +837,7 @@ namespace Particles
                                        recv_data_it);
       }
 
-    AssertThrow(total_recv_data == 0 || recv_data_it == &recv_data.back()+1,
+    AssertThrow(recv_data_it == recv_data.data() + recv_data.size(),
                 ExcMessage("The amount of data that was read into new particles "
                            "does not match the amount of data sent around."));
   }

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.