Replies: 1 comment 1 reply
-
I think the issue is that |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear all,
I’m a Fortran user of AMReX, and I use the functionalities of Particles in AMReX. In my codes, I consider the ionization collision between particles, which means that new particles will be added during the simulation. I add particles by the following procedure (
PC_ele_particles
is theParticleContainer
of electrons andPC_ion_particles
is theParticleContainer
of ions):However, I found that an error occurs when the frequency of ionization collision is high. There is no specific error message but the codes suddenly stop and produce a file of Backtrace.0 to tell me the location where the error occurs. After some tests, I found that any call to the pointer
particles(ll)
, such asparticles(ll)%pos
, will cause a segment fault after the call ofPC_ele_particles%add_particle
. Also, I found the error disappear if I callPC_ele_particles%add_particle
andPC_ion_particles%add_particle
outside the cycle ofdo ll = 1, elec_num enddo
. So, I wonder if there is a restriction for the use ofadd_particle
, such as one could not add particles in the cycle whereparticles
, which is a pointer ofamrex_particle
, is used. Thanks.Beta Was this translation helpful? Give feedback.
All reactions