EGSnrc icon indicating copy to clipboard operation
EGSnrc copied to clipboard

Crash when only providing electric field and not magnetic field

Open rtownson opened this issue 2 years ago • 0 comments

A segmentation fault occurs when only an electric field is specified:

Electric Field = 1000,0,0
EM ESTEPE = 0.2

the error is resolved when you provide a zero magnetic field:

Magnetic Field = 0,0,0
Electric Field = 1000,0,0
EM ESTEPE = 0.2

So it seems that we need to add a default setting for magnetic fields of 0,0,0. I haven't looked into the code yet, and only tested this in egs++.

rtownson avatar Sep 16 '22 14:09 rtownson