From: Daniel Arndt Date: Tue, 1 May 2018 10:54:15 +0000 (+0200) Subject: Simplify the last AssertThrow X-Git-Tag: v9.0.0-rc1~48^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2225099e236c734d13fb1ab2ef9bfa46cbc21027;p=dealii.git Simplify the last AssertThrow --- diff --git a/source/particles/particle_handler.cc b/source/particles/particle_handler.cc index c2a4305a94..3bc443bbd9 100644 --- a/source/particles/particle_handler.cc +++ b/source/particles/particle_handler.cc @@ -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.")); }