From a95de9d5abc82f31bebdc86571d27615c20bb88e Mon Sep 17 00:00:00 2001 From: Anna Jaruga Date: Mon, 11 Aug 2025 16:05:35 -0700 Subject: [PATCH] tmp testing to fix coupler test --- src/cache/cloud_fraction.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cache/cloud_fraction.jl b/src/cache/cloud_fraction.jl index 92e301f58d..8520f7a3ae 100644 --- a/src/cache/cloud_fraction.jl +++ b/src/cache/cloud_fraction.jl @@ -94,7 +94,9 @@ NVTX.@annotate function set_cloud_fraction!( end end - ᶜmixing_length = compute_gm_mixing_length(Y, p) + # TODO - tmp fix for the Coupler test. To be removed soon. + ᶜmixing_length_field = p.scratch.ᶜtemp_scalar + ᶜmixing_length_field .= compute_gm_mixing_length(Y, p) diagnostic_covariance_coeff = CAP.diagnostic_covariance_coeff(params) @. cloud_diagnostics_tuple = quad_loop( @@ -103,7 +105,7 @@ NVTX.@annotate function set_cloud_fraction!( Geometry.WVector(p.precomputed.ᶜgradᵥ_q_tot), Geometry.WVector(p.precomputed.ᶜgradᵥ_θ_liq_ice), diagnostic_covariance_coeff, - ᶜmixing_length, + ᶜmixing_length_field, thermo_params, ) end