@@ -182,11 +182,12 @@ function alloc_test_operators_in_loops(cfield, ffield)
182182 end
183183end
184184function 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))) * cϕ * cψ # Compile first
191192 p = @allocated begin
192193 @. cz = cx * cy * ∇c (wvec (LB (cy))) * ∇c (wvec (LB (cx))) * cϕ * cψ
@@ -208,12 +209,13 @@ function alloc_test_nested_expressions_2(cfield, ffield)
208209end
209210
210211function 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))) * cϕ * cψ # Compile first
219221 p = @allocated begin
0 commit comments