From 5e66b0725599c8537b870a9312e4fe1e1208cf1c Mon Sep 17 00:00:00 2001 From: Joshua Bowden Date: Thu, 18 Jan 2024 16:36:47 +0100 Subject: [PATCH] fix for crash when cleaning up damaris mesh offset variable due to shared memory buffer being size off by one --- ebos/damariswriter.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebos/damariswriter.hh b/ebos/damariswriter.hh index 28bc5cfa7..e4377d86d 100644 --- a/ebos/damariswriter.hh +++ b/ebos/damariswriter.hh @@ -419,7 +419,7 @@ private: DamarisVarInt var_connectivity(1, {std::string("n_connectivity_ph")}, std::string("topologies/topo/elements/connectivity"), rank_) ; var_connectivity.setDamarisParameterAndShmem({ geomData.getNCorners()}) ; DamarisVarInt var_offsets(1, {std::string("n_offsets_types_ph")}, std::string("topologies/topo/elements/offsets"), rank_) ; - var_offsets.setDamarisParameterAndShmem({ geomData.getNCells()}) ; + var_offsets.setDamarisParameterAndShmem({ geomData.getNCells()+1}) ; DamarisVarChar var_types(1, {std::string("n_offsets_types_ph")}, std::string("topologies/topo/elements/types"), rank_) ; var_types.setDamarisParameterAndShmem({ geomData.getNCells()}) ;