-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault when using uniform distributions with space-charge effects #5698
Comments
Thanks for reporting this. Could you answer a few quick questions:
Thanks! |
Hi @RemiLehe The plasma is indeed expected to be charge neutral, as it is supposed to be two graphene layers without any doping. I ran the script again without recompiling in order to check the physical amplitude of the E field. Not sure where I can see it but I'm gonna share the simulation.log, warpx_used_inputs and inputs_3d_picmi, as well as one Backtrace file (I usually simulate using 32 parallel CPU cores so I always get 32 Backtraces). Here are those files: I am going to attempt a new compìlation with the change you suggested. It may take a while to compile but the moment I can simulate I'll share the log too |
Hi again, I recompiled WarpX with the change @RemiLehe suggested. I ran the same script and segfault happened again as expected. The error message is way clearer now. It can be seen on the simulation.log: It looks like the particle shape does not fit within the tile (I am using CPU) used for current deposition. Not sure about what that means but you guys will probably be able to help me. Thanks! EDIT 1: I tried running the simulation with quadratic shape just in case it worked, but it still crashed. I also tried linear and it still had the segfault. |
Thanks for doing these tests and confirming that the plasma should be neutral. Looking at your input script, it seems that the plasma is not initially neutral:
Could you try to correct this and re-run the simulation? |
Hi WarpX team.
I am having problems with a simulation trying to model plasmonic oscillations of a graphene bilayer. I am trying to add space-charge effects but I keep getting segfaults. This is similar to an already closed issue #5678 but in my case it seems to run deeper. I tried changing every analytic distribution to a uniform one but I am still having issues. The script is this one:
The simulation log shows that it starts writing into the first dump, but the moment it deposits the currents, it has the segmentation fault. The backtrace shows that the problem is on the current deposition indeed:
===== TinyProfilers ======
REG::WarpX::Evolve()
WarpX::Evolve()
WarpX::Evolve::step
WarpX::OneStep_nosub()
PhysicalParticleContainer::Evolve()
WarpXParticleContainer::DepositCurrent::CurrentDeposition
Turning the initialize_self_field option off makes the segfault go away.
Any idea what may be happening? I thought that not using analytic expressions for the plasmas would solve the issue but it is not working and I am a bit puzzled right now.
On the last issue, I said it worked for me because the condition didn't produce a plasma. I changed the 'and' to an 'or' and the ions where properly set but the segfault reapeared.
If you need any extra info I can share it too.
The text was updated successfully, but these errors were encountered: