From 15e37d78a483374842ca455b057420c8fc319c31 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Sun, 22 Mar 2020 16:08:25 +0100 Subject: [PATCH] Fix assert --- include/deal.II/lac/la_sm_vector.templates.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/deal.II/lac/la_sm_vector.templates.h b/include/deal.II/lac/la_sm_vector.templates.h index ce89fef8b7..5f1bb69ee1 100644 --- a/include/deal.II/lac/la_sm_vector.templates.h +++ b/include/deal.II/lac/la_sm_vector.templates.h @@ -51,8 +51,10 @@ namespace LinearAlgebra MemorySpaceData & data, const MPI_Comm & comm_shared) { - Assert(allocated_size == 0, ExcNotImplemented()); - Assert(data.values == nullptr, ExcNotImplemented()); + // TODO: is assert fine? + Assert(((allocated_size > 0 && data.values != nullptr) || + data.values == nullptr), + ExcInternalError()); allocated_size = new_alloc_size; -- 2.39.5