File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ class DevitoDeprecation():
6
6
7
7
@cached_property
8
8
def coeff_warn (self ):
9
- warn ("The Coefficient API is deprecated and will be removed, coefficients should"
9
+ warn ("The Coefficient API is deprecated and will be removed, coefficients should "
10
10
"be passed directly to the derivative object `u.dx(weights=...)" ,
11
11
DeprecationWarning , stacklevel = 2 )
12
12
return
13
13
14
14
@cached_property
15
15
def symbolic_warn (self ):
16
- warn ("coefficients='symbolic' is deprecated, coefficients should"
16
+ warn ("coefficients='symbolic' is deprecated, coefficients should "
17
17
"be passed directly to the derivative object `u.dx(weights=...)" ,
18
18
DeprecationWarning , stacklevel = 2 )
19
19
return
Original file line number Diff line number Diff line change @@ -395,11 +395,12 @@ def dspace(self):
395
395
# intersecting intervals with matching only dimensions
396
396
for f , v in parts .items ():
397
397
for i in v :
398
- # oobs check is not required but helps reduce
399
- # interval reconstruction
400
- if i . dim in oobs and i . dim in f . dimensions :
398
+ if i . dim in self . ispace and i . dim in f . dimensions :
399
+ # oobs check is not required but helps reduce
400
+ # interval reconstruction
401
401
ii = intervals [i .dim ].intersection (v [i .dim ])
402
- intervals = intervals .set_upper (i .dim , ii .upper )
402
+ if not ii .is_Null :
403
+ intervals = intervals .set_upper (i .dim , ii .upper )
403
404
404
405
# E.g., `db0 -> time`, but `xi NOT-> x`
405
406
intervals = intervals .promote (lambda d : not d .is_Sub )
You can’t perform that action at this time.
0 commit comments