Skip to content

Commit b2fd861

Browse files
committed
misc: Revert suggestion until fix found
1 parent 5e3b879 commit b2fd861

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

devito/timestepping/superstep.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ def superstep_generator(field, stencil, k, nt=0):
4949
"""
5050
# New fields, for vector formulation both current and previous timestep are needed
5151
name = field.name
52+
grid = field.grid
5253
# time_order of `field` needs to be 2
53-
u = field._rebuild(name=f'{name}_ss', time_order=1, space_order=2*k)
54-
u_prev = field._rebuild(name=f'{name}_ss', time_order=1, space_order=2*k)
54+
u = TimeFunction(name=f'{name}_ss', grid=grid, time_order=2, space_order=2*k)
55+
u_prev = TimeFunction(name=f'{name}_ss_p', grid=grid, time_order=2, space_order=2*k)
5556

5657
superstep_solution_transfer(field, u, u_prev, nt)
5758

0 commit comments

Comments
 (0)