-
Notifications
You must be signed in to change notification settings - Fork 33
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
Issue with Model Execution When trunc is Greater Than or Equal to 600 #644
Comments
Can you post the error? |
MethodError: no method matching isless(::Int64, ::Nothing)
The function `isless` exists, but no method is defined for this combination of argument types.
Closest candidates are:
isless(::Missing, ::Any)
@ Base missing.jl:87
isless(::Any, ::Missing)
@ Base missing.jl:88
isless(::Real, ::Union{StatsBase.PValue, StatsBase.TestStat})
@ StatsBase C:\Users\roc\.julia\packages\StatsBase\xgoZ5\src\statmodels.jl:91
...
Stacktrace:
[1] <(x::Int64, y::Nothing)
@ Base .\operators.jl:353
[2] grid_cell_average!(output::FullGaussianGrid{Float32}, input::FullClenshawGrid{UInt8})
@ SpeedyWeather.RingGrids C:\Users\roc\.julia\packages\SpeedyWeather\pliqj\src\RingGrids\interpolation.jl:562
[3] initialize!(land_sea_mask::LandSeaMask{Float32, FullGaussianGrid{Float32}}, model::PrimitiveWetModel{SpeedyWeather.DeviceSetup{CPU, DataType}, Geometry{Float32, FullGaussianGrid}, Earth{Float32}, EarthAtmosphere{Float32}, Coriolis{Float32}, Geopotential{Float32}, EarthOrography{Float32, FullGaussianGrid{Float32}}, AdiabaticConversion{Float32}, NoParticleAdvection, InitialConditions{ZonalWind, PressureOnOrography, JablonowskiTemperature, ConstantRelativeHumidity}, NoRandomProcess, LandSeaMask{Float32, FullGaussianGrid{Float32}}, SeasonalOceanClimatology{Float32, FullGaussianGrid{Float32}}, SeasonalLandTemperature{Float32, FullGaussianGrid{Float32}}, SolarZenith{Float32}, AlbedoClimatology{Float32, FullGaussianGrid{Float32}}, SeasonalSoilMoisture{Float32, FullGaussianGrid{Float32}}, VegetationClimatology{Float32, FullGaussianGrid{Float32}}, ClausiusClapeyron{Float32}, BulkRichardsonDrag{Float32}, NoTemperatureRelaxation, BulkRichardsonDiffusion{Float32}, SurfaceThermodynamicsConstant, SurfaceWind{Float32}, SurfaceHeatFlux{Float32}, SurfaceEvaporation{Float32}, ImplicitCondensation{Float32}, SimplifiedBettsMiller{Float32, NoSurfacePerturbation}, ZeroOpticalDepth{Float32}, NoShortwave, JeevanjeeRadiation{Float32}, StochasticallyPerturbedParameterizationTendencies{Float32, Vector{Float32}}, Leapfrog{Float32}, SpectralTransform{Float32, Array, Vector{Float32}, Vector{ComplexF32}, Vector{Int64}, Matrix{ComplexF32}, Array{ComplexF32, 3}, LowerTriangularMatrix{Float32}, LowerTriangularArray{Float32, 2, Matrix{Float32}}}, ImplicitPrimitiveEquation{Float32}, HyperDiffusion{Float32, Matrix{Float32}}, CenteredVerticalAdvection{Float32, 1}, ClipNegatives, NetCDFOutput{FullGaussianGrid{Float32}, FullGaussianArray{Float32, 2, Matrix{Float32}}, AnvilInterpolator{Float32, FullGaussianGrid}}, Feedback})
@ SpeedyWeather C:\Users\roc\.julia\packages\SpeedyWeather\pliqj\src\physics\land_sea_mask.jl:95
[4] initialize!(model::PrimitiveWetModel{SpeedyWeather.DeviceSetup{CPU, DataType}, Geometry{Float32, FullGaussianGrid}, Earth{Float32}, EarthAtmosphere{Float32}, Coriolis{Float32}, Geopotential{Float32}, EarthOrography{Float32, FullGaussianGrid{Float32}}, AdiabaticConversion{Float32}, NoParticleAdvection, InitialConditions{ZonalWind, PressureOnOrography, JablonowskiTemperature, ConstantRelativeHumidity}, NoRandomProcess, LandSeaMask{Float32, FullGaussianGrid{Float32}}, SeasonalOceanClimatology{Float32, FullGaussianGrid{Float32}}, SeasonalLandTemperature{Float32, FullGaussianGrid{Float32}}, SolarZenith{Float32}, AlbedoClimatology{Float32, FullGaussianGrid{Float32}}, SeasonalSoilMoisture{Float32, FullGaussianGrid{Float32}}, VegetationClimatology{Float32, FullGaussianGrid{Float32}}, ClausiusClapeyron{Float32}, BulkRichardsonDrag{Float32}, NoTemperatureRelaxation, BulkRichardsonDiffusion{Float32}, SurfaceThermodynamicsConstant, SurfaceWind{Float32}, SurfaceHeatFlux{Float32}, SurfaceEvaporation{Float32}, ImplicitCondensation{Float32}, SimplifiedBettsMiller{Float32, NoSurfacePerturbation}, ZeroOpticalDepth{Float32}, NoShortwave, JeevanjeeRadiation{Float32}, StochasticallyPerturbedParameterizationTendencies{Float32, Vector{Float32}}, Leapfrog{Float32}, SpectralTransform{Float32, Array, Vector{Float32}, Vector{ComplexF32}, Vector{Int64}, Matrix{ComplexF32}, Array{ComplexF32, 3}, LowerTriangularMatrix{Float32}, LowerTriangularArray{Float32, 2, Matrix{Float32}}}, ImplicitPrimitiveEquation{Float32}, HyperDiffusion{Float32, Matrix{Float32}}, CenteredVerticalAdvection{Float32, 1}, ClipNegatives, NetCDFOutput{FullGaussianGrid{Float32}, FullGaussianArray{Float32, 2, Matrix{Float32}}, AnvilInterpolator{Float32, FullGaussianGrid}}, Feedback}; time::DateTime)
@ SpeedyWeather C:\Users\roc\.julia\packages\SpeedyWeather\pliqj\src\models\primitive_wet.jl:135
[5] initialize!(model::PrimitiveWetModel{SpeedyWeather.DeviceSetup{CPU, DataType}, Geometry{Float32, FullGaussianGrid}, Earth{Float32}, EarthAtmosphere{Float32}, Coriolis{Float32}, Geopotential{Float32}, EarthOrography{Float32, FullGaussianGrid{Float32}}, AdiabaticConversion{Float32}, NoParticleAdvection, InitialConditions{ZonalWind, PressureOnOrography, JablonowskiTemperature, ConstantRelativeHumidity}, NoRandomProcess, LandSeaMask{Float32, FullGaussianGrid{Float32}}, SeasonalOceanClimatolog |
|
It's the |
Thank you very much, I will try to use nolandseamask, tomorrow. |
511 is ok, but 682 and 1023 have the same problem |
Dear Dr. Milan
using SpeedyWeather
spectral_grid = SpectralGrid(trunc=1023, Grid=FullGaussianGrid)
model = PrimitiveWetModel(spectral_grid)
set!(model, land_sea_mask=0)
simulation = initialize!(model) error MethodError: no method matching isless(::Int64, ::Nothing)
The function `isless` exists, but no method is defined for this combination of argument types.
Closest candidates are:
isless(::Missing, ::Any)
@ Base missing.jl:87
isless(::Any, ::Missing)
@ Base missing.jl:88
isless(::Real, ::Union{StatsBase.PValue, StatsBase.TestStat})
@ StatsBase [C:\Users\roc\.julia\packages\StatsBase\xgoZ5\src\statmodels.jl:91](file:///C:/Users/roc/.julia/packages/StatsBase/xgoZ5/src/statmodels.jl#line=90)
...
Stacktrace:
[1] <(x::Int64, y::Nothing)
@ Base [.\operators.jl:353](http://localhost:8888/lab/tree/speedyweather/operators.jl#line=352)
[2] grid_cell_average!(output::FullGaussianGrid{Float32}, input::FullClenshawGrid{UInt8})
@ SpeedyWeather.RingGrids [C:\Users\roc\.julia\packages\SpeedyWeather\pliqj\src\RingGrids\interpolation.jl:562](file:///C:/Users/roc/.julia/packages/SpeedyWeather/pliqj/src/RingGrids/interpolation.jl#line=561)
[3] initialize!(land_sea_mask::LandSeaMask{Float32, FullGaussianGrid{Float32}}, model::PrimitiveWetModel{SpeedyWeather.DeviceSetup{CPU, DataType}, Geometry{Float32, FullGaussianGrid}, Earth{Float32}, EarthAtmosphere{Float32}, Coriolis{Float32}, Geopotential{Float32}, EarthOrography{Float32, FullGaussianGrid{Float32}}, AdiabaticConversion{Float32}, NoParticleAdvection, InitialConditions{ZonalWind, PressureOnOrography, JablonowskiTemperature, ConstantRelativeHumidity}, NoRandomProcess, LandSeaMask{Float32, FullGaussianGrid{Float32}}, SeasonalOceanClimatology{Float32, FullGaussianGrid{Float32}}, SeasonalLandTemperature{Float32, FullGaussianGrid{Float32}}, SolarZenith{Float32}, AlbedoClimatology{Float32, FullGaussianGrid{Float32}}, SeasonalSoilMoisture{Float32, FullGaussianGrid{Float32}}, VegetationClimatology{Float32, FullGaussianGrid{Float32}}, ClausiusClapeyron{Float32}, BulkRichardsonDrag{Float32}, NoTemperatureRelaxation, BulkRichardsonDiffusion{Float32}, SurfaceThermodynamicsConstant, SurfaceWind{Float32}, SurfaceHeatFlux{Float32}, SurfaceEvaporation{Float32}, ImplicitCondensation{Float32}, SimplifiedBettsMiller{Float32, NoSurfacePerturbation}, ZeroOpticalDepth{Float32}, NoShortwave, JeevanjeeRadiation{Float32}, StochasticallyPerturbedParameterizationTendencies{Float32, Vector{Float32}}, Leapfrog{Float32}, SpectralTransform{Float32, Array, Vector{Float32}, Vector{ComplexF32}, Vector{Int64}, Matrix{ComplexF32}, Array{ComplexF32, 3}, LowerTriangularMatrix{Float32}, LowerTriangularArray{Float32, 2, Matrix{Float32}}}, ImplicitPrimitiveEquation{Float32}, HyperDiffusion{Float32, Matrix{Float32}}, CenteredVerticalAdvection{Float32, 1}, ClipNegatives, NetCDFOutput{FullGaussianGrid{Float32}, FullGaussianArray{Float32, 2, Matrix{Float32}}, AnvilInterpolator{Float32, FullGaussianGrid}}, Feedback})
@ SpeedyWeather [C:\Users\roc\.julia\packages\SpeedyWeather\pliqj\src\physics\land_sea_mask.jl:95](file:///C:/Users/roc/.julia/packages/SpeedyWeather/pliqj/src/physics/land_sea_mask.jl#line=94)
[4] initialize!(model::PrimitiveWetModel{SpeedyWeather.DeviceSetup{CPU, DataType}, Geometry{Float32, FullGaussianGrid}, Earth{Float32}, EarthAtmosphere{Float32}, Coriolis{Float32}, Geopotential{Float32}, EarthOrography{Float32, FullGaussianGrid{Float32}}, AdiabaticConversion{Float32}, NoParticleAdvection, InitialConditions{ZonalWind, PressureOnOrography, JablonowskiTemperature, ConstantRelativeHumidity}, NoRandomProcess, LandSeaMask{Float32, FullGaussianGrid{Float32}}, SeasonalOceanClimatology{Float32, FullGaussianGrid{Float32}}, SeasonalLandTemperature{Float32, FullGaussianGrid{Float32}}, SolarZenith{Float32}, AlbedoClimatology{Float32, FullGaussianGrid{Float32}}, SeasonalSoilMoisture{Float32, FullGaussianGrid{Float32}}, VegetationClimatology{Float32, FullGaussianGrid{Float32}}, ClausiusClapeyron{Float32}, BulkRichardsonDrag{Float32}, NoTemperatureRelaxation, BulkRichardsonDiffusion{Float32}, SurfaceThermodynamicsConstant, SurfaceWind{Float32}, SurfaceHeatFlux{Float32}, SurfaceEvaporation{Float32}, ImplicitCondensation{Float32}, SimplifiedBettsMiller{Float32, NoSurfacePerturbation}, ZeroOpticalDepth{Float32}, NoShortwave, JeevanjeeRadiation{Float32}, StochasticallyPerturbedParameterizationTendencies{Float32, Vector{Float32}}, Leapfrog{Float32}, SpectralTransform{Float32, Array, Vector{Float32}, Vector{ComplexF32}, Vector{Int64}, Matrix{ComplexF32}, Array{ComplexF32, 3}, LowerTriangularMatrix{Float32}, LowerTriangularArray{Float32, 2, Matrix{Float32}}}, ImplicitPrimitiveEquation{Float32}, HyperDiffusion{Float32, Matrix{Float32}}, CenteredVerticalAdvection{Float32, 1}, ClipNegatives, NetCDFOutput{FullGaussianGrid{Float32}, FullGaussianArray{Float32, 2, Matrix{Float32}}, AnvilInterpolator{Float32, FullGaussianGrid}}, Feedback}; time::DateTime)
@ SpeedyWeather [C:\Users\roc\.julia\packages\SpeedyWeather\pliqj\src\models\primitive_wet.jl:135](file:///C:/Users/roc/.julia/packages/SpeedyWeather/pliqj/src/models/primitive_wet.jl#line=134)
[5] initialize!(model::PrimitiveWetModel{SpeedyWeather.DeviceSetup{CPU, DataType}, Geometry{Float32, FullGaussianGrid}, Earth{Float32}, EarthAtmosphere{Float32}, Coriolis{Float32}, Geopotential{Float32}, EarthOrography{Float32, FullGaussianGrid{Float32}}, AdiabaticConversion{Float32}, NoParticleAdvection, InitialConditions{ZonalWind, PressureOnOrography, JablonowskiTemperature, ConstantRelativeHumidity}, NoRandomProcess, LandSeaMask{Float32, FullGaussianGrid{Float32}}, SeasonalOceanClimatology{Float32, FullGaussianGrid{Float32}}, SeasonalLandTemperature{Float32, FullGaussianGrid{Float32}}, SolarZenith{Float32}, AlbedoClimatology{Float32, FullGaussianGrid{Float32}}, SeasonalSoilMoisture{Float32, FullGaussianGrid{Float32}}, VegetationClimatology{Float32, FullGaussianGrid{Float32}}, ClausiusClapeyron{Float32}, BulkRichardsonDrag{Float32}, NoTemperatureRelaxation, BulkRichardsonDiffusion{Float32}, SurfaceThermodynamicsConstant, SurfaceWind{Float32}, SurfaceHeatFlux{Float32}, SurfaceEvaporation{Float32}, ImplicitCondensation{Float32}, SimplifiedBettsMiller{Float32, NoSurfacePerturbation}, ZeroOpticalDepth{Float32}, NoShortwave, JeevanjeeRadiation{Float32}, StochasticallyPerturbedParameterizationTendencies{Float32, Vector{Float32}}, Leapfrog{Float32}, SpectralTransform{Float32, Array, Vector{Float32}, Vector{ComplexF32}, Vector{Int64}, Matrix{ComplexF32}, Array{ComplexF32, 3}, LowerTriangularMatrix{Float32}, LowerTriangularArray{Float32, 2, Matrix{Float32}}}, ImplicitPrimitiveEquation{Float32}, HyperDiffusion{Float32, Matrix{Float32}}, CenteredVerticalAdvection{Float32, 1}, ClipNegatives, NetCDFOutput{FullGaussianGrid{Float32}, FullGaussianArray{Float32, 2, Matrix{Float32}}, AnvilInterpolator{Float32, FullGaussianGrid}}, Feedback})
@ SpeedyWeather [C:\Users\roc\.julia\packages\SpeedyWeather\pliqj\src\models\primitive_wet.jl:120](file:///C:/Users/roc/.julia/packages/SpeedyWeather/pliqj/src/models/primitive_wet.jl#line=119)
[6] top-level scope
@ In[49]:5
using SpeedyWeather
spectral_grid = SpectralGrid(trunc=1023, Grid=FullGaussianGrid)
model = PrimitiveWetModel(spectral_grid, land_sea_mask = NoLandSeaMask) error UndefVarError: `NoLandSeaMask` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ In[50]:3 |
You can use model = PrimitiveWetModel(spectral_grid, land_sea_mask = AquaPlanetMask(spectral_grid)) instead. This defines an aqua planet, so no land sea mask.
|
Dear Dr. Milan,
When run the model with the following code. The model runs normally when trunc is less than or equal to 599. However, when trunc is greater than or equal to 600, the model throws an error and fails to execute.
Could you please help me ? Thank you in advance for your assistance.
The text was updated successfully, but these errors were encountered: