-
Notifications
You must be signed in to change notification settings - Fork 29
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
ERROR KGslErrorHandler.cxx and domain error (1) in ellint.c #69
Comments
Hi @marcogobbo, thanks for your message. I have also encountered this behavior before, but it was some years ago, so I unfortunately have no steps to reproduce it. In my case, it also terminated the electrons at the right position, so I just treated the "gsl_error"-terminator as the one that I intended to have. To pinpoint the exact reason of the error, I would like to ask you whether you have a minimal example so that I can reproduce the bug on my machine and be able to properly debug this error. |
Thanks for the reply @richeldichel! I was thinking of using the same technique since the output is what I'm expecting, but I don't really like errors and makes me doubt what I've written. I'm using this type of control
I posted here the entire structure https://gist.github.com/marcogobbo/e5dd800a79449ac2c0daea3856b2f541 Meanwhile, I'll try to find different approaches using the control tags! Let me know if you find something interesting! |
Hey, to add to that: From looking into the source, this error happens when I'm not quite sure why this happens, but we can investigate by adding code like the following to the beginning of
That should give more information on what exactly goes wrong there. |
I've added this code, but it doesn't output anything. For the avoidance of doubt, this is the method we are aiming for
The output error is still the same, I've tried to remove the
|
Thank you for trying! This is weird. Since that is something that occurred to me multiple times: Are you sure you did not just The function not printing anything would be really weird otherwise, since it obviously fails in that function (as from your stack trace: |
I forgot to run one of the I ran the simulation for 20 events and I got this output
|
Thank you! In the meantime I also tested it and an example output where it actually fails later is
Anyways, it turns out that this error occurs when one calculates a field e.g. on a charge-defined conic section. |
I'm trying to simulate an electron gun with a simple setup that includes two electrodes with one with a hole. The electrons generated from the cathode are accelerated to the anode with a hole. Two termination events are defined
ksterm_max_z
andksterm_death
, this one seems to produce this error each time the electrons collide with the anode surfacewhile electrons passing through the hole activate the
ksterm_max_z termination
. In fact, if I open the root file I findb'gsl_error'
andb'term_max_z'
. Instead, if I use the anode without a hole like the cathode, I don't get this error, butb'term_death_surface'
.I started to suppose that could be a problem related to the attribute
radial_mesh_count
of thecylinder_tube_space
but it doesn't change and I've already defined theaxial_mesh
andelectrostatic_dirichlet
.The
kemfield
I'm using is the same as theDipoleTrapSimulation.xml
example.The text was updated successfully, but these errors were encountered: