From 119840d70bcda3c5f0e121a4727233ebcaa1b727 Mon Sep 17 00:00:00 2001 From: Sam Pasmann Date: Mon, 15 Jan 2024 17:33:14 -0700 Subject: [PATCH] add domain bank full error and remove vistigil d_id --- mcdc/kernel.py | 5 +++++ mcdc/type_.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mcdc/kernel.py b/mcdc/kernel.py index d395f293..a533e91b 100644 --- a/mcdc/kernel.py +++ b/mcdc/kernel.py @@ -3032,6 +3032,11 @@ def iqmc_improved_kull(mcdc): # ========================================================================= MPI.Request.waitall(requests) size = bankr.shape[0] + # check to see if we exceeded max. bank size + if size >= buff.shape[0]: + print("Received bank size = ", size, " domain bank size = ", buff.shape[0]) + print_error("Particle domain bank is full.") + # Set output buffer for i in range(size): buff[i] = bankr[i] diff --git a/mcdc/type_.py b/mcdc/type_.py index c460fd7e..ec3a6485 100644 --- a/mcdc/type_.py +++ b/mcdc/type_.py @@ -84,7 +84,7 @@ def make_type_particle_record(iQMC, G): Ng = 1 if iQMC: Ng = G - iqmc_struct = [("w", float64, (Ng,)), ("d_id", int32)] + iqmc_struct = [("w", float64, (Ng,))] struct += [("iqmc", iqmc_struct)] particle_record = np.dtype(struct)