Skip to content

Commit 3634c5e

Browse files
More BC fixes
1 parent b73cf5b commit 3634c5e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Operators/finitedifference/opt_examples.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,12 @@ function alloc_test_operators_in_loops(cfield, ffield)
182182
end
183183
end
184184
function alloc_test_nested_expressions_1(cfield, ffield)
185+
FT = Spaces.undertype(axes(cfield))
185186
(; fx, fy, fz, fϕ, fψ) = ffield
186187
(; cx, cy, cz, cϕ, cψ) = cfield
187188
∇c = Operators.DivergenceF2C()
188189
wvec = Geometry.WVector
189-
LB = Operators.LeftBiasedC2F(; bottom = Operators.SetValue(1))
190+
LB = Operators.LeftBiasedC2F(; bottom = Operators.SetValue(FT(1)))
190191
@. cz = cx * cy * ∇c(wvec(LB(cy))) * ∇c(wvec(LB(cx))) **# Compile first
191192
p = @allocated begin
192193
@. cz = cx * cy * ∇c(wvec(LB(cy))) * ∇c(wvec(LB(cx))) **
@@ -208,12 +209,13 @@ function alloc_test_nested_expressions_2(cfield, ffield)
208209
end
209210

210211
function alloc_test_nested_expressions_3(cfield, ffield)
212+
FT = Spaces.undertype(axes(cfield))
211213
(; fx, fy, fz, fϕ, fψ) = ffield
212214
(; cx, cy, cz, cϕ, cψ) = cfield
213215
Ic = Operators.InterpolateF2C()
214216
∇c = Operators.DivergenceF2C()
215217
wvec = Geometry.WVector
216-
LB = Operators.LeftBiasedC2F(; bottom = Operators.SetValue(1))
218+
LB = Operators.LeftBiasedC2F(; bottom = Operators.SetValue(FT(1)))
217219
#! format: off
218220
@. cz = cx * cy * ∇c(wvec(LB(Ic(fy) * cx))) * ∇c(wvec(LB(Ic(fy) * cx))) **# Compile first
219221
p = @allocated begin

0 commit comments

Comments
 (0)