Skip to content

Commit

Permalink
make it GPU-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhamv committed Aug 18, 2024
1 parent 0c91c9d commit 5bac9d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions 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 Expand Up @@ -2645,7 +2647,9 @@ def distance_to_boundary(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 5bac9d0

Please sign in to comment.