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 16, 2024
1 parent a3fe5c3 commit 0a708e7
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 @@ -1622,7 +1622,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 0a708e7

Please sign in to comment.