From 2e1cc4aa7aa76a59388743368719f4fed06e0fcf Mon Sep 17 00:00:00 2001 From: tiemvanderdeure Date: Thu, 22 Aug 2024 13:24:44 +0200 Subject: [PATCH] define ClimateModel before using it --- src/types.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.jl b/src/types.jl index 3185339..f1da0ff 100644 --- a/src/types.jl +++ b/src/types.jl @@ -181,7 +181,6 @@ abstract type CMIPphase end The Coupled Model Intercomparison Project, Phase 5. """ struct CMIP5 <: CMIPphase end -const CMIP5_MODELS = Type{<:ClimateModel{CMIP5}}[] """ CMIP6 <: CMIPphase @@ -189,7 +188,6 @@ const CMIP5_MODELS = Type{<:ClimateModel{CMIP5}}[] The Coupled Model Intercomparison Project, Phase 6. """ struct CMIP6 <: CMIPphase end -const CMIP6_MODELS = Type{<:ClimateModel{CMIP6}}[] """ ClimateModel @@ -197,6 +195,8 @@ const CMIP6_MODELS = Type{<:ClimateModel{CMIP6}}[] Abstract supertype for climate models use in [`Future`](@ref) datasets. """ abstract type ClimateModel{CMIP<:CMIPphase} end +const CMIP6_MODELS = Type{<:ClimateModel{CMIP6}}[] +const CMIP5_MODELS = Type{<:ClimateModel{CMIP5}}[] """ ClimateScenario