From 95575d94500ce359b6f0a266070b4ca63ef5ac98 Mon Sep 17 00:00:00 2001 From: ianchb Date: Thu, 22 Jan 2026 14:26:41 +0800 Subject: [PATCH] fix: try to fix segfault at 240 steps by adding WithShell guard for writecheck_sh call --- AMSS_NCKU_source/bssn_gpu_class.C | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AMSS_NCKU_source/bssn_gpu_class.C b/AMSS_NCKU_source/bssn_gpu_class.C index f6d5170..68424be 100644 --- a/AMSS_NCKU_source/bssn_gpu_class.C +++ b/AMSS_NCKU_source/bssn_gpu_class.C @@ -2134,7 +2134,9 @@ void bssn_class::Evolve(int Steps) CheckPoint->write_Black_Hole_position(BH_num_input, BH_num, Porg0, Porgbr, Mass); CheckPoint->writecheck_cgh(PhysTime, GH); +#ifdef WithShell CheckPoint->writecheck_sh(PhysTime, SH); +#endif CheckPoint->write_bssn(LastDump, Last2dDump, LastAnas); } }