@@ -135,7 +135,6 @@ def main(inflow: 'inflow velocity' = 10,
135
135
lhs00 = lhs0
136
136
137
137
timestep = 0
138
- t = 0
139
138
140
139
while interface .is_coupling_ongoing ():
141
140
with treelog .context (f'timestep { timestep } ' ):
@@ -150,7 +149,7 @@ def main(inflow: 'inflow velocity' = 10,
150
149
151
150
# save checkpoint
152
151
if interface .is_action_required (precice .action_write_iteration_checkpoint ()):
153
- checkpoint = lhs0 , lhs00 , t , timestep , meshdofs0 , meshdofs00 , meshdofs000 , meshdofs0000
152
+ checkpoint = lhs0 , lhs00 , timestep , meshdofs0 , meshdofs00 , meshdofs000 , meshdofs0000
154
153
interface .mark_action_fulfilled (precice .action_write_iteration_checkpoint ())
155
154
156
155
# solve fluid equations
@@ -176,7 +175,6 @@ def main(inflow: 'inflow velocity' = 10,
176
175
177
176
# advance variables
178
177
timestep += 1
179
- t += dt
180
178
lhs00 = lhs0
181
179
lhs0 = lhs1
182
180
meshdofs0000 = meshdofs000
@@ -186,7 +184,7 @@ def main(inflow: 'inflow velocity' = 10,
186
184
187
185
# read checkpoint if required
188
186
if interface .is_action_required (precice .action_read_iteration_checkpoint ()):
189
- lhs0 , lhs00 , t , timestep , meshdofs0 , meshdofs00 , meshdofs000 , meshdofs0000 = checkpoint
187
+ lhs0 , lhs00 , timestep , meshdofs0 , meshdofs00 , meshdofs000 , meshdofs0000 = checkpoint
190
188
interface .mark_action_fulfilled (precice .action_read_iteration_checkpoint ())
191
189
192
190
if interface .is_time_window_complete ():
0 commit comments