Move plotdata
call earlier in eikcoefs to avoid issue with theta being redefined.
David Dickinson
Branch: bugfix/move_plotdata_call_before_theta_redefinition
Branch: next
Merged
Merged pull request
Merged in bugfix/move_plotdata_call_before_theta_redefinition (pull request #225)
For certain equilibrium types (at least Efit and GS2D) the
Rpos(r, theta)
andZpos(r, theta)
functions require thetheta
passed to be consistently defined with that used to calculate the values ofr
passed in (fromrgrid
). Here we move the call toplotdata
, which callsRpos
andZpos
to before the handling ofequal_arc
as this could lead to a redefinition oftheta
.This fixes bugs in the netcdf output of
Rplot
,Zplot
etc. but I don't think it should impact on the outputs of geometry used in the rest of GS2.