]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix some more
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 13 Jul 2023 02:56:34 +0000 (22:56 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 14 Jul 2023 11:52:24 +0000 (07:52 -0400)
include/deal.II/lac/sparse_matrix_tools.h
include/deal.II/lac/vector.templates.h

index b7dbfa7de3739f250e4b5f18062ea32b5b5de14a..b355c6c95492ec379434958eb2a4903d9cd2cb74 100644 (file)
@@ -343,7 +343,7 @@ namespace SparseMatrixTools
                                    SparseMatrixType2 &        system_matrix_out,
                                    SparsityPatternType2 &sparsity_pattern_out)
   {
-    Assert(index_set_1.empty() || index_set_0.size() == index_set_1.size(),
+    Assert(index_set_1.size() || index_set_0.size() == index_set_1.size(),
            ExcInternalError());
 
     auto index_set_1_cleared = index_set_1;
index ede5ac761fb91ec41e6e86bfac2b057dd0e96684..52cba5a014cb5fb28e4a6b9c456770ca1a707f31 100644 (file)
@@ -87,7 +87,7 @@ namespace internal
   copy_petsc_vector(const PETScWrappers::VectorBase &v,
                     ::dealii::Vector<Number> &       out)
   {
-    if (v.empty())
+    if (v.size() == 0)
       {
         out.reinit(0);
         return;

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.