From 85751993af92ce422eef3bfb7d74cc592de900fe Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 20 Feb 2025 12:00:20 -0700 Subject: [PATCH] Err on the safe side. --- source/grid/tria.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 8e2738e5cd..cb23ea896f 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -13728,6 +13728,11 @@ template DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim)) void Triangulation::load(const std::string &file_basename) { + // It's probably prudent to first get rid of any all content of the + // triangulation, rather than hope that the deserialization below + // overwrites everything: + clear(); + // Load triangulation information. { std::ifstream ifs_tria(file_basename + "_triangulation.data"); -- 2.39.5