ascot4fusion / ascot5

ASCOT5 is a high-performance orbit-following code for fusion plasma physics and engineering
https://ascot4fusion.github.io/ascot5/
GNU Lesser General Public License v3.0
31 stars 9 forks source link

First orbit data point with GO2GC option contains null data #31

Open miekkasarki opened 1 year ago

miekkasarki commented 1 year ago

A strange bug that seems compiler/platform specific. I've removed the first data point in GC transform test because of this.

This test simulates GOs but collects GC data (using the option parameter). When I run this on my desktop the test runs properly and all collected orbit points are valid. When it is run on Github action the test fails because the first collected orbit point contains dummy data (e.g. R=0 which leads to NaNs in postprocessing).

This is a minor bug (no hotfix needed) but I just want to record it here.