Skip to content

Commit 767c19a

Browse files
remove unused t variable
1 parent 4cbf721 commit 767c19a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

perpendicular-flap/fluid-nutils/fluid.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def main(inflow: 'inflow velocity' = 10,
135135
lhs00 = lhs0
136136

137137
timestep = 0
138-
t = 0
139138

140139
while interface.is_coupling_ongoing():
141140
with treelog.context(f'timestep {timestep}'):
@@ -150,7 +149,7 @@ def main(inflow: 'inflow velocity' = 10,
150149

151150
# save checkpoint
152151
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
154153
interface.mark_action_fulfilled(precice.action_write_iteration_checkpoint())
155154

156155
# solve fluid equations
@@ -176,7 +175,6 @@ def main(inflow: 'inflow velocity' = 10,
176175

177176
# advance variables
178177
timestep += 1
179-
t += dt
180178
lhs00 = lhs0
181179
lhs0 = lhs1
182180
meshdofs0000 = meshdofs000
@@ -186,7 +184,7 @@ def main(inflow: 'inflow velocity' = 10,
186184

187185
# read checkpoint if required
188186
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
190188
interface.mark_action_fulfilled(precice.action_read_iteration_checkpoint())
191189

192190
if interface.is_time_window_complete():

0 commit comments

Comments
 (0)