@@ -139,7 +139,7 @@ def detect_plates(step, vrms_surface, fids, time):
139139 for itrench in np .arange (len (trench )):
140140 fids [0 ].write ("%7.0f %11.7f %10.6f %9.2f %9.2f \n " % (
141141 step .isnap ,
142- step .geom . ti_ad ,
142+ step .time ,
143143 trench [itrench ],
144144 velocity_trench [itrench ],
145145 agetrench [itrench ]
@@ -259,7 +259,7 @@ def plot_plates(step, time, vrms_surface, trench, ridge, agetrench,
259259 ax1 .set_title (timestep )
260260 ax1 .text (0.95 , 1.07 , str (round (time , 0 )) + ' My' ,
261261 transform = ax1 .transAxes )
262- ax1 .text (0.01 , 1.07 , str (round (step .geom . ti_ad , 8 )),
262+ ax1 .text (0.01 , 1.07 , str (round (step .time , 8 )),
263263 transform = ax1 .transAxes )
264264
265265 plot_plate_limits (ax3 , ridge , trench , conf .plates .vmin ,
@@ -275,7 +275,7 @@ def plot_plates(step, time, vrms_surface, trench, ridge, agetrench,
275275 ax1 .set_ylabel ("Velocity" )
276276 ax1 .text (0.95 , 1.07 , str (round (time , 0 )) + ' My' ,
277277 transform = ax1 .transAxes )
278- ax1 .text (0.01 , 1.07 , str (round (step .geom . ti_ad , 8 )),
278+ ax1 .text (0.01 , 1.07 , str (round (step .time , 8 )),
279279 transform = ax1 .transAxes )
280280 ax2 .plot (ph_coord [:- 1 ] + ph_coord [0 ], dvph2 , color = 'k' , label = 'dv' )
281281 ax2 .set_ylabel ("dv" )
@@ -308,7 +308,7 @@ def plot_plates(step, time, vrms_surface, trench, ridge, agetrench,
308308 ax1 .set_ylabel ("Velocity" )
309309 ax1 .text (0.95 , 1.07 , str (round (time , 0 )) + ' My' ,
310310 transform = ax1 .transAxes )
311- ax1 .text (0.01 , 1.07 , str (round (step .geom . ti_ad , 8 )),
311+ ax1 .text (0.01 , 1.07 , str (round (step .time , 8 )),
312312 transform = ax1 .transAxes )
313313 ax2 .plot (ph_coord [:- 1 ],
314314 stressfld [:- 1 , indsurf ] * step .sdat .scales .stress / 1.e6 ,
@@ -389,7 +389,7 @@ def plot_plates(step, time, vrms_surface, trench, ridge, agetrench,
389389 age_subd .append (agetrench [i ])
390390 ph_cont_subd .append (continentpos )
391391 distance_subd .append (distancecont )
392- times_subd .append (step .geom . ti_ad )
392+ times_subd .append (step .time )
393393
394394 if angdistance1 [argdistancecont ] < angdistance2 [argdistancecont ]:
395395 if continentpos - trench_i < 0 : # continent is on the left
@@ -535,7 +535,7 @@ def lithospheric_stress(step, trench, ridge, time):
535535 ax1 .set_ylabel ("Velocity" )
536536 ax1 .text (0.95 , 1.07 , str (round (time , 0 )) + ' My' ,
537537 transform = ax1 .transAxes )
538- ax1 .text (0.01 , 1.07 , str (round (step .geom . ti_ad , 8 )),
538+ ax1 .text (0.01 , 1.07 , str (round (step .time , 8 )),
539539 transform = ax1 .transAxes )
540540
541541 intstr_scale = step .sdat .scales .stress * step .sdat .scales .length / 1.e12
@@ -610,7 +610,7 @@ def main_plates(sdat):
610610 if sdat .par ['boundaries' ]['air_layer' ]:
611611 topo [:, 1 ] = topo [:, 1 ] / (1. - dsa )
612612
613- time = step .geom . ti_ad * vrms_surface * \
613+ time = step .time * vrms_surface * \
614614 conf .scaling .ttransit / conf .scaling .yearins / 1.e6
615615 trenches , ridges , agetrenches , _ , _ = \
616616 detect_plates (step , vrms_surface , fids , time )
0 commit comments