Closed bprather closed 3 months ago
I can verify this and review the PR. Since this is an initialization issue, I assume running it a couple (or even just one) timestep should suffice to confirm that the fix works?
Yeah exactly. The first dump should either show beta=100 with the script in the issue, or not.
Just tested this fix and it seems to be working. Here's the output from the script,
Gas pressure max: 0.004089842185900548
Mag. pressure max: 4.089861522027286e-05
beta_min: 99.99952721805779
Approving this PR.
Great, let's merge this and I can add the full FM test against pyharm
separately. Since pyharm
only has the unmagnetized torus right now, it will take some time.
This is the patch for fixing #110, see description there.
I would like to put in a proper test before merging this straight into
stable
. If someone could verify it works for their case, this will need a review, too.