You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update particle docs for expanded idcpu range (#4758)
I am making a series of PRs that update the particle documentation. This
first one explains the current convention re: particle id and cpu
numbers.
The proposed changes:
- [ ] fix a bug or incorrect behavior in AMReX
- [ ] add new capabilities to AMReX
- [ ] changes answers in the test suite to more than roundoff level
- [ ] are likely to significantly affect the results of downstream AMReX
users
- [x] include documentation in the code and/or rst files, if appropriate
---------
Co-authored-by: Axel Huebl <[email protected]>
is equivalent to a particle struct you get with :cpp:`Particle<6, 0>`. Here,
@@ -793,9 +809,6 @@ The following runtime parameters affect the behavior of virtual particles in Nyx
793
809
Particles default to double precision for their real data. To use single precision, compile your code with ``USE_SINGLE_PRECISION_PARTICLES=TRUE``.
794
810
795
811
.. [2]
796
-
Note that :cpp:`cpu` stores the number of the process the particle was *generated* on, not the one it's currently assigned to. This number is set on initialization and never changes, just like the particle :cpp:`id`. In essence, the particles have two integer id numbers, and only the combination of the two is unique. This was done to facilitate the creation of particle initial conditions in parallel.
797
-
798
-
.. [3]
799
812
Note that for the extra particle components, which component refers to which
800
813
variable is an application-specific convention - the particles have 4 extra real comps, but which one is "mass" is up
801
814
to the user. We suggest using an :cpp:`enum` to keep these indices straight; please
0 commit comments