Skip to content

Commit 2ae40e7

Browse files
committed
Fix field plots in magma_oceans_mode
When evolving_magma_oceans is false, the MO thicknesses aren't tracked.
1 parent 1ecbb6c commit 2ae40e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stagpy/field.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,14 @@ def plot_scalar(step: Step, var: str, field: Optional[ndarray] = None,
215215
else:
216216
fig = axis.get_figure()
217217

218-
if step.sdat.par['magma_oceans_in']['magma_oceans_mode']:
218+
if step.sdat.par['magma_oceans_in']['evolving_magma_oceans']:
219219
rcmb = step.sdat.par['geometry']['r_cmb']
220220
xmax = rcmb + 1
221221
ymax = xmax
222222
xmin = -xmax
223223
ymin = -ymax
224224
rsurf = xmax if step.timeinfo['thick_tmo'] > 0 \
225-
else step.geom.r_walls[0, 0, -3]
225+
else step.geom.r_walls[-3]
226226
cmb = mpat.Circle((0, 0), rcmb, color='dimgray', zorder=0)
227227
psurf = mpat.Circle((0, 0), rsurf, color='indianred', zorder=0)
228228
axis.add_patch(psurf)

0 commit comments

Comments
 (0)