From dc6181db5fda997a062eeaf6432e4a47735d950d Mon Sep 17 00:00:00 2001 From: Chun Date: Tue, 7 Apr 2026 00:33:45 -0400 Subject: [PATCH] reset hydro grid information to zero when clear up the evolution history --- src/framework/FluidEvolutionHistory.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/framework/FluidEvolutionHistory.h b/src/framework/FluidEvolutionHistory.h index fa786bc6..a387b741 100644 --- a/src/framework/FluidEvolutionHistory.h +++ b/src/framework/FluidEvolutionHistory.h @@ -221,7 +221,21 @@ class EvolutionHistory { /** * @brief Clear the evolution history data. */ - void clear_up_evolution_data() { data.clear(); } + void clear_up_evolution_data() { + data.clear(); + ntau = 0; + nx = 0; + ny = 0; + neta = 0; + dtau = 0; + dx = 0; + dy = 0; + deta = 0; + tau_min = 0; + x_min = 0; + y_min = 0; + eta_min = 0; + } /** * @brief Get the size of the data vector.