Skip to content

Commit 071d07c

Browse files
committed
Fix r_coord with magma_oceans_in
Fix a regression introduced in 9506170
1 parent 4e10972 commit 071d07c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stagpy/_step.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def __init__(self, header, par):
8585
self._coords[1] = np.array(0)
8686
self._coords[2] += self.rcmb
8787
if par['magma_oceans_in']['magma_oceans_mode']:
88-
self._coord[2] += header['mo_lambda']
89-
self._coord[2] *= header['mo_thick_sol']
88+
self._coords[2] += header['mo_lambda']
89+
self._coords[2] *= header['mo_thick_sol']
9090
t_mesh, p_mesh, r_mesh = np.meshgrid(
9191
self.t_coord, self.p_coord, self.r_coord, indexing='ij')
9292
# compute cartesian coordinates

0 commit comments

Comments
 (0)