From: Sebastian Kinnewig Date: Wed, 31 Jan 2024 09:55:52 +0000 (+0100) Subject: Fix assert in import_elements from ReadWriteVector X-Git-Tag: relicensing~91^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16574%2Fhead;p=dealii.git Fix assert in import_elements from ReadWriteVector --- diff --git a/include/deal.II/lac/read_write_vector.templates.h b/include/deal.II/lac/read_write_vector.templates.h index 1ed6f1f279..c72a04c8c7 100644 --- a/include/deal.II/lac/read_write_vector.templates.h +++ b/include/deal.II/lac/read_write_vector.templates.h @@ -586,7 +586,7 @@ namespace LinearAlgebra using size_type = std::decay_t; - Assert(size == 0 || values != nullptr, ExcInternalError("Import failed.")); + Assert(size == 0 || !values.empty(), ExcInternalError("Import failed.")); AssertDimension(size, stored_elements.n_elements()); switch (operation)