For a helical undulator we expect the third harmonic radiation output to be zero. However, on the lattice file, when adding a space after helical= true, the simulation interprets it as plantar undulator and there is some third harmonic radiation on the output file different from zero. Now, if we write helical=true with no spacing in between, the simulation does run as a helical undulator, and no third harmonic is seen on the output radiation.
Thank you for finding this bug. After trimming the whitespace of values strings in the lattice input deck the problem doe snot occur any longer (hopefully). It is commited to the dev branch of the repository.
For a helical undulator we expect the third harmonic radiation output to be zero. However, on the lattice file, when adding a space after
helical= true
, the simulation interprets it as plantar undulator and there is some third harmonic radiation on the output file different from zero. Now, if we writehelical=true
with no spacing in between, the simulation does run as a helical undulator, and no third harmonic is seen on the output radiation.example_bug_helical.zip