pyro-kinetics / pyrokinetics

Python library to run and analyse gyrokinetics simulations
https://pyrokinetics.readthedocs.io/en/latest/#
GNU Lesser General Public License v3.0
24 stars 6 forks source link

Add check for box_size when no kx is set with a test. #362

Closed bpatel2107 closed 3 months ago

bpatel2107 commented 3 months ago

TGLF doesn't set a kx grid which can break calculations of BOX_SIZE or jtwist. Here we check if kx==0 and set the radial box multiplier to 1 in these cases.

Added a test to check this.