Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable_longwave and disable_shortwave keywords are broken in RRTGMPInterface #3340

Open
Tracked by #3146
Sbozzolo opened this issue Sep 25, 2024 · 0 comments
Open
Tracked by #3146

Comments

@Sbozzolo
Copy link
Member

Passing either of two, results in:

ERROR: LoadError: MethodError: no method matching RRTMGP.RTE.TwoStreamSWRTE(::ClimaComms.SingletonCommsContext{…}, ::RRTMGP.Optics.TwoStream{…}, ::Nothing, ::Nothing, ::Nothing, ::Nothing)

Closest candidates are:
  RRTMGP.RTE.TwoStreamSWRTE(::C, ::OP, ::SS, ::BC, ::FXBS, ::FXS) where {C, OP<:RRTMGP.Optics.TwoStream, SS, BC<:RRTMGP.BCs.SwBCs, FXBS, FXS<:RRTMGP.Fluxes.FluxSW}
   @ RRTMGP ~/.julia/packages/RRTMGP/giQDb/src/optics/RTE.jl:142
  RRTMGP.RTE.TwoStreamSWRTE(::Type{FT}, ::Type{DA}, ::Any, ::Any, ::Any, ::Any...) where {FT, DA}
   @ RRTMGP ~/.julia/packages/RRTMGP/giQDb/src/optics/RTE.jl:157

Stacktrace:
  [1] ClimaAtmos.RRTMGPInterface.RRTMGPModel(params::RRTMGP.Parameters.RRTMGPParameters{…}, data_loader::typeof(ClimaAtmos.rrtmgp_data_loader), context::ClimaComms.SingletonCommsContext{…}; ncol::Int64, domain_nlay::Int64, extension_nlay::Int64, radiation_mode::ClimaAtmos.RRTMGPInterface.AllSkyRadiation, interpolation::ClimaAtmos.RRTMGPInterface.BestFit, bottom_extrapolation::ClimaAtmos.RRTMGPInterface.SameAsInterpolation, disable_longwave::Bool, disable_shortwave::Bool, use_one_scalar_mode::Bool, use_pade_cloud_optics_mode::Bool, use_global_means_for_well_mixed_gases::Bool, kwargs::@Kwargs{})
    @ ClimaAtmos.RRTMGPInterface ~/repos/ClimaAtmos.jl/src/parameterized_tendencies/radiation/RRTMGPInterface.jl:889
  [2] (::ClimaAtmos.var"#119#121"{})(input_data::NCDatasets.NCDataset{…})
    @ ClimaAtmos ~/repos/ClimaAtmos.jl/src/parameterized_tendencies/radiation/radiation.jl:237
  [3] (::ClimaAtmos.var"#114#115"{ClimaAtmos.var"#119#121"{}})(ds::NCDatasets.NCDataset{Nothing, Missing})
    @ ClimaAtmos ~/repos/ClimaAtmos.jl/src/parameterized_tendencies/radiation/radiation_utilities.jl:16
  [4] NCDatasets.NCDataset(::ClimaAtmos.var"#114#115"{}, ::String, ::Vararg{…}; kwargs::@Kwargs{})
    @ NCDatasets ~/.julia/packages/NCDatasets/PkTUf/src/dataset.jl:251
  [5] NCDatasets.NCDataset(::Function, ::String, ::Vararg{String})
    @ NCDatasets ~/.julia/packages/NCDatasets/PkTUf/src/dataset.jl:248
  [6] rrtmgp_data_loader(fn::ClimaAtmos.var"#119#121"{}, file_name::String)
    @ ClimaAtmos ~/repos/ClimaAtmos.jl/src/parameterized_tendencies/radiation/radiation_utilities.jl:15
  [7] radiation_model_cache(Y::FieldVector{…}, radiation_mode::ClimaAtmos.RRTMGPInterface.AllSkyRadiation, params::ClimaAtmos.Parameters.ClimaAtmosParameters{…}, ᶜp::Field{…}, prescribe_ozone::Bool, aerosol_names::Tuple{}, insolation_mode::ClimaAtmos.TimeVaryingInsolation; interpolation::ClimaAtmos.RRTMGPInterface.BestFit, bottom_extrapolation::ClimaAtmos.RRTMGPInterface.SameAsInterpolation, data_loader::typeof(ClimaAtmos.rrtmgp_data_loader))
    @ ClimaAtmos ~/repos/ClimaAtmos.jl/src/parameterized_tendencies/radiation/radiation.jl:74
  [8] radiation_model_cache(Y::FieldVector{…}, radiation_mode::ClimaAtmos.RRTMGPInterface.AllSkyRadiation, params::ClimaAtmos.Parameters.ClimaAtmosParameters{…}, ᶜp::Field{…}, prescribe_ozone::Bool, aerosol_names::Tuple{}, insolation_mode::ClimaAtmos.TimeVaryingInsolation)
    @ ClimaAtmos ~/repos/ClimaAtmos.jl/src/parameterized_tendencies/radiation/radiation.jl:31
  [9] radiation_model_cache(::FieldVector{…}, ::ClimaAtmos.AtmosModel{…}, ::ClimaAtmos.Parameters.ClimaAtmosParameters{…}, ::Field{…}, ::Bool, ::Tuple{}, ::ClimaAtmos.TimeVaryingInsolation)
    @ ClimaAtmos ~/repos/ClimaAtmos.jl/src/parameterized_tendencies/radiation/radiation.jl:17
 [10] build_cache(Y::FieldVector{…}, atmos::ClimaAtmos.AtmosModel{…}, params::ClimaAtmos.Parameters.ClimaAtmosParameters{…}, surface_setup::ClimaAtmos.SurfaceConditions.DefaultMoninObukhov, sim_info::@NamedTuple{}, prescribe_ozone::Bool, aerosol_names::Tuple{})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant