From c49ed2645d0a91428631a648f246bdd9afcbe539 Mon Sep 17 00:00:00 2001 From: Jago Strong-Wright Date: Sun, 15 Dec 2024 19:34:43 +0000 Subject: [PATCH] fix adapt --- .../perturbation_advection_open_boundary_matching_scheme.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BoundaryConditions/perturbation_advection_open_boundary_matching_scheme.jl b/src/BoundaryConditions/perturbation_advection_open_boundary_matching_scheme.jl index 6714f4aa6b..aa929eb971 100644 --- a/src/BoundaryConditions/perturbation_advection_open_boundary_matching_scheme.jl +++ b/src/BoundaryConditions/perturbation_advection_open_boundary_matching_scheme.jl @@ -18,7 +18,8 @@ struct PerturbationAdvection{VT, FT} end Adapt.adapt_structure(to, pe::PerturbationAdvection) = - PerturbationAdvection(adapt(to, pe.outflow_timescale), + PerturbationAdvection(adapt(to, pe.backward_step), + adapt(to, pe.outflow_timescale), adapt(to, pe.inflow_timescale)) function PerturbationAdvectionOpenBoundaryCondition(val, FT = Float64;