From 6684016e8c6c4b29c4c395c96ad58cd25b4cdf72 Mon Sep 17 00:00:00 2001 From: CGH0S7 <776459475@qq.com> Date: Sat, 31 Jan 2026 16:23:16 +0800 Subject: [PATCH] Optimize MPI domain decomposition min_width calculation to improve scalability --- AMSS_NCKU_source/Parallel.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AMSS_NCKU_source/Parallel.C b/AMSS_NCKU_source/Parallel.C index 713a6a7..e1d5a35 100644 --- a/AMSS_NCKU_source/Parallel.C +++ b/AMSS_NCKU_source/Parallel.C @@ -313,7 +313,7 @@ MyList *Parallel::distribute(MyList *PatchLIST, int cpusize, int i int split_size, min_size, block_size = 0; - int min_width = 2 * Mymax(ghost_width, buffer_width); + int min_width = Mymax(2 * ghost_width + 2, buffer_width + 2); int nxyz[dim], mmin_width[dim], min_shape[dim]; MyList *PLi = PatchLIST; @@ -641,7 +641,7 @@ MyList *Parallel::distribute(MyList *PatchLIST, int cpusize, int i int split_size, min_size, block_size = 0; - int min_width = 2 * Mymax(ghost_width, buffer_width); + int min_width = Mymax(2 * ghost_width + 2, buffer_width + 2); int nxyz[dim], mmin_width[dim], min_shape[dim]; MyList *PLi = PatchLIST;