PrincetonUniversity/STELLOPT

Coils Files with only one current group crashes STELLOPT

Opened this issue · 0 comments

STELLOPT will crash if you attempt to optimize a free boundary equilibrium with only one current group. This won't cause VMEC to crash but rather to issue the message:

% cdfgv: --E-- The variable curlabel is 1 dimensional

however, when STELLOPT attempts to read the wout file and then write it again it crashes with

At line 463 of file wrout.f
Fortran runtime error: Index '1' of dimension 1 of array 'curlabel' outside of expected range (1:0)

The workaround is to always have more than one current group in your MGRID.