Skip to content

Commit 296bcd0

Browse files
committed
vwcae
1 parent ee76817 commit 296bcd0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

devito/petsc/types/metadata.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,9 @@ class ConstrainBC:
729729
Metadata passed to `SolverExpr` to constrain essential
730730
boundary conditions using a PetscSection.
731731
"""
732-
def __init__(self, target, exprs, arrays):
732+
def __init__(self, target, exprs, arrays, time_mapper):
733733
self.target = target
734+
self.time_mapper = time_mapper
734735
self.arrays = arrays
735736
self.counter = PetscInt(name=f'count_{target.name}')
736737
self._make_increment_exprs(as_tuple(exprs))
@@ -790,7 +791,7 @@ def _make_point_bc_expr(self, expr):
790791
if isinstance(expr, EssentialBC):
791792
assert expr.lhs == self.target
792793
return PointEssentialBC(
793-
self.counter, self.target,
794+
self.counter, self.target.subs(self.time_mapper),
794795
subdomain=expr.subdomain,
795796
target=self.target
796797
)

0 commit comments

Comments
 (0)