From 104075b3cd7e95ed2b830495a31f187b6167f8b1 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Sat, 23 Apr 2022 00:49:39 +0200
Subject: [PATCH] [assembler] Add assert for non-zero element set size

---
 dumux/assembly/fvassembler.hh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dumux/assembly/fvassembler.hh b/dumux/assembly/fvassembler.hh
index e90d33ee91..8522297f35 100644
--- a/dumux/assembly/fvassembler.hh
+++ b/dumux/assembly/fvassembler.hh
@@ -489,6 +489,8 @@ private:
         {
             if (enableMultithreading_)
             {
+                assert(elementSets_.size() > 0);
+
                 // make this element loop run in parallel
                 // for this we have to color the elements so that we don't get
                 // race conditions when writing into the global matrix
-- 
GitLab