Skip to content

Commit

Permalink
compiler: Fix start pointer to work with save kwarg of TimeFunctions
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeLeibowitz committed Aug 15, 2024
1 parent 76375a0 commit ccf9489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/petsc/iet/routines.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ class StartPtr(LocalObject):
field_from_ptr = FieldFromPointer(target._C_field_data, target._C_symbol)
expr = DummyExpr(
start_ptr, BarCast(field_from_ptr, ' *') +
Mul(target_time._C_symbol, objs['localsize']._C_symbol), init=True
Mul((target_time), objs['localsize']), init=True
)

vec_replace_array = petsc_call('VecReplaceArray', [solver_objs['x_local'], start_ptr])
Expand Down

0 comments on commit ccf9489

Please sign in to comment.