Skip to content

Commit 4baf577

Browse files
committed
Don't fetch c field if plates.continents is False
1 parent 09ea7fe commit 4baf577

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stagpy/plates.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,10 @@ def _write_trench_diagnostics(step, vrms_surf, itrenches, fid):
253253
else:
254254
agetrenches = np.zeros(len(itrenches))
255255

256-
phi_cont = step.geom.p_centers[_continents_location(step)]
256+
if conf.plates.continents:
257+
phi_cont = step.geom.p_centers[_continents_location(step)]
258+
else:
259+
phi_cont = np.array([np.nan])
257260

258261
distance_subd = []
259262
ph_cont_subd = []

0 commit comments

Comments
 (0)