From: Peter Munch Date: Sun, 22 Mar 2020 15:08:25 +0000 (+0100) Subject: Fix assert X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15e37d78a483374842ca455b057420c8fc319c31;p=dealii.git Fix assert --- 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;