PrincetonUniversity / SPEC

The Stepped-Pressure Equilibrium Code, an advanced MRxMHD equilibrium solver.
https://princetonuniversity.github.io/SPEC/
GNU General Public License v3.0
24 stars 4 forks source link

Initial guess simsopt fix #178

Closed abaillod closed 2 years ago

abaillod commented 2 years ago

Hi,

This is a minor fix that I had to do to implement some features in simsopt. The arrays mmrzrz, nnrzrz, and allrzrz are now always allocated, even if no initial guess is provided.

I will soon open a pull request on the simsopt repository that uses this to update SPEC's initial guess every time an equilibrium converges.

abaillod commented 2 years ago

Could someone accept these changes? I need these in the master branch for an open simsopt PR.