-
Hi, I am trying to invoke DistributionMapping with weights set to the number of particles per cell. However, I cannot find a way to extract the number of particles per cell which is to be assigned to the weights MultiFab. I can retrieve the number of particles in a tile using numParticles(). Is there an equivalent method for cells? |
Beta Was this translation helpful? Give feedback.
Answered by
atmyers
Jun 15, 2023
Replies: 1 comment
-
You can use the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
arun-s-p
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
Increment
method ofParticleContainer
to fill a Multifab with the number of particles in each cell, then include that in the weights.