From 4588e218843739588703c3aa977b861147b9b7e9 Mon Sep 17 00:00:00 2001 From: Simone Silvestri Date: Fri, 10 Jan 2025 08:11:07 -0100 Subject: [PATCH] add function support --- src/Grids/vertical_coordinate.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Grids/vertical_coordinate.jl b/src/Grids/vertical_coordinate.jl index 8799a52a78..ec0bf0ad2a 100644 --- a/src/Grids/vertical_coordinate.jl +++ b/src/Grids/vertical_coordinate.jl @@ -52,7 +52,7 @@ struct ZStarVerticalCoordinate{C, D, E, CC, FC, CF, FF} <: AbstractVerticalCoord end # Convenience constructors for Zstar vertical coordinate -ZStarVerticalCoordinate(r_faces::Union{Function, Tuple, AbstractVector}) = ZStarVerticalCoordinate(r_faces, r_faces, [nothing for i in 1:9]...) +ZStarVerticalCoordinate(r_faces) = ZStarVerticalCoordinate(r_faces, r_faces, [nothing for i in 1:9]...) ZStarVerticalCoordinate(r⁻::Number, r⁺::Number) = ZStarVerticalCoordinate((r⁻, r⁺), (r⁻, r⁺), [nothing for i in 1:9]...) ####