Skip to content

Commit

Permalink
make GPU-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhamv committed Aug 17, 2024
1 parent 0bfc05d commit e1a0e5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mcdc/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,9 @@ def get_particle_material(P, mcdc):

# Apply translation
if cell["fill_translated"]:
P["translation"] += cell["translation"]
P["translation"][0] += cell["translation"][0]
P["translation"][1] += cell["translation"][1]
P["translation"][2] += cell["translation"][2]
P["translated"] = True

if cell["fill_type"] == FILL_LATTICE:
Expand Down

0 comments on commit e1a0e5c

Please sign in to comment.