Skip to content

Commit

Permalink
recompact the particle coordinate argument passing
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhamv committed Aug 21, 2024
1 parent 9ff5b72 commit ff86f3a
Show file tree
Hide file tree
Showing 9 changed files with 177 additions and 98 deletions.
25 changes: 13 additions & 12 deletions mcdc/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,19 @@

# Events
# The << operator represents a bitshift. Each event is assigned 1 << X, which is equal to 2 to the power of X.
EVENT_COLLISION = 1 << 0
EVENT_SURFACE = 1 << 1
EVENT_CENSUS = 1 << 2
EVENT_MESH = 1 << 3
EVENT_SCATTERING = 1 << 4
EVENT_FISSION = 1 << 5
EVENT_CAPTURE = 1 << 6
EVENT_TIME_BOUNDARY = 1 << 7
EVENT_LATTICE = 1 << 8
EVENT_SURFACE_MOVE = 1 << 9
EVENT_DOMAIN = 1 << 10
EVENT_LOST = 1 << 11
EVENT_NONE = 1 << 0
EVENT_COLLISION = 1 << 1
EVENT_SURFACE = 1 << 2
EVENT_CENSUS = 1 << 3
EVENT_MESH = 1 << 4
EVENT_SCATTERING = 1 << 5
EVENT_FISSION = 1 << 6
EVENT_CAPTURE = 1 << 7
EVENT_TIME_BOUNDARY = 1 << 8
EVENT_LATTICE = 1 << 9
EVENT_SURFACE_MOVE = 1 << 10
EVENT_DOMAIN = 1 << 11
EVENT_LOST = 1 << 12

# Gyration raius type
GYRATION_RADIUS_ALL = 0
Expand Down
Loading

0 comments on commit ff86f3a

Please sign in to comment.