From 730c04f7edadcd39d76917cf70714e6562507cff Mon Sep 17 00:00:00 2001 From: Nicola Giuliani Date: Mon, 24 May 2021 10:25:48 +0200 Subject: [PATCH] added check not to call faces if dim == 1 when clearing user data --- source/grid/tria.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 96efb3aa05..0c18c0957d 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -10992,7 +10992,8 @@ Triangulation::clear_user_data() { // let functions in anonymous namespace do their work dealii::clear_user_data(levels); - dealii::clear_user_data(faces.get()); + if (dim > 1) + dealii::clear_user_data(faces.get()); } -- 2.39.5