Skip to content

Commit

Permalink
add domain bank full error and remove vistigil d_id
Browse files Browse the repository at this point in the history
  • Loading branch information
spasmann committed Jan 16, 2024
1 parent 09fd06b commit 119840d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mcdc/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion mcdc/type_.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 119840d

Please sign in to comment.