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

runtests.jl giving two Float errors (a BUG ?) and one update_field! warning #1234

Open
waywardpidgeon opened this issue Mar 24, 2025 · 1 comment

Comments

@waywardpidgeon
Copy link

waywardpidgeon commented Mar 24, 2025

I ran runtests.jl and saw two errors which look maybe straight forward for someone to fix and one warning.
Here is the output:

julia> include("test/runtests.jl")
Test Summary: | Pass  Total  Time
Aqua tests    |   10     10  8.1s
test CoupledSim construction, float_type for FT=Float32: Error During Test at C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\interfacer_tests.jl:34
  Got exception outside of a @test
  TypeError: in CoupledSimulation, in NTP, expected NTP<:NamedTuple, got Type{Nothing}
  Stacktrace:
    [1] (ClimaCoupler.Interfacer.CoupledSimulation{Float32})(::Nothing, ::Vararg{Any})
      @ ClimaCoupler.Interfacer C:\Users\kab\.julia\packages\ClimaCoupler\aL9xV\src\Interfacer.jl:73
    [2] macro expansion
      @ C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\interfacer_tests.jl:35 [inlined]
    [3] macro expansion
      @ C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\Test.jl:1704 [inlined]
    [4] top-level scope
      @ C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\interfacer_tests.jl:35
    [5] include(mod::Module, _path::String)
      @ Base .\Base.jl:557
    [6] include(x::String)
      @ Main.var"##Interfacer tests#231" C:\Users\kab\.julia\packages\SafeTestsets\raUNr\src\SafeTestsets.jl:28
    [7] macro expansion
      @ C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\runtests.jl:21 [inlined]
    [8] macro expansion
      @ C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\Test.jl:1704 [inlined]
    [9] macro expansion
      @ C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\runtests.jl:21 [inlined]
   [10] top-level scope
      @ C:\Users\kab\.julia\packages\SafeTestsets\raUNr\src\SafeTestsets.jl:30
   [11] eval(m::Module, e::Any)
      @ Core .\boot.jl:430
   [12] top-level scope
      @ C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\runtests.jl:28
   [13] include(fname::String)
      @ Main .\sysimg.jl:38
   [14] top-level scope
      @ REPL[3]:1
   [15] eval
      @ .\boot.jl:430 [inlined]
   [16] eval_user_input(ast::Any, backend::REPL.REPLBackend, mod::Module)
      @ REPL C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:245
   [17] repl_backend_loop(backend::REPL.REPLBackend, get_module::Function)
      @ REPL C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:342
   [18] start_repl_backend(backend::REPL.REPLBackend, consumer::Any; get_module::Function)
      @ REPL C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:327
   [19] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool, backend::Any)
      @ REPL C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:483
   [20] run_repl(repl::REPL.AbstractREPL, consumer::Any)
      @ REPL C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:469
   [21] (::Base.var"#1150#1152"{Bool, Symbol, Bool})(REPL::Module)
      @ Base .\client.jl:446
   [22] #invokelatest#2
      @ .\essentials.jl:1055 [inlined]
   [23] invokelatest
      @ .\essentials.jl:1052 [inlined]
   [24] run_main_repl(interactive::Bool, quiet::Bool, banner::Symbol, history_file::Bool, color_set::Bool)
      @ Base .\client.jl:430
   [25] repl_main
      @ .\client.jl:567 [inlined]
   [26] _start()
      @ Base .\client.jl:541
test CoupledSim construction, float_type for FT=Float64: Error During Test at C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\interfacer_tests.jl:34
  Got exception outside of a @test
  TypeError: in CoupledSimulation, in NTP, expected NTP<:NamedTuple, got Type{Nothing}
  Stacktrace:
    [1] (ClimaCoupler.Interfacer.CoupledSimulation{Float64})(::Nothing, ::Vararg{Any})
      @ ClimaCoupler.Interfacer C:\Users\kab\.julia\packages\ClimaCoupler\aL9xV\src\Interfacer.jl:73
    [2] macro expansion
      @ C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\interfacer_tests.jl:35 [inlined]
    [3] macro expansion
      @ C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\Test.jl:1704 [inlined]
    [4] top-level scope
      @ C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\interfacer_tests.jl:35
    [5] include(mod::Module, _path::String)
      @ Base .\Base.jl:557
    [6] include(x::String)
      @ Main.var"##Interfacer tests#231" C:\Users\kab\.julia\packages\SafeTestsets\raUNr\src\SafeTestsets.jl:28
    [7] macro expansion
      @ C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\runtests.jl:21 [inlined]
    [8] macro expansion
      @ C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\Test.jl:1704 [inlined]
    [9] macro expansion
      @ C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\runtests.jl:21 [inlined]
   [10] top-level scope
      @ C:\Users\kab\.julia\packages\SafeTestsets\raUNr\src\SafeTestsets.jl:30
   [11] eval(m::Module, e::Any)
      @ Core .\boot.jl:430
   [12] top-level scope
      @ C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\runtests.jl:28
   [13] include(fname::String)
      @ Main .\sysimg.jl:38
   [14] top-level scope
      @ REPL[3]:1
   [15] eval
      @ .\boot.jl:430 [inlined]
   [16] eval_user_input(ast::Any, backend::REPL.REPLBackend, mod::Module)
      @ REPL C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:245
   [17] repl_backend_loop(backend::REPL.REPLBackend, get_module::Function)
      @ REPL C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:342
   [18] start_repl_backend(backend::REPL.REPLBackend, consumer::Any; get_module::Function)
      @ REPL C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:327
   [19] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool, backend::Any)
      @ REPL C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:483
   [20] run_repl(repl::REPL.AbstractREPL, consumer::Any)
      @ REPL C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:469
   [21] (::Base.var"#1150#1152"{Bool, Symbol, Bool})(REPL::Module)
      @ Base .\client.jl:446
   [22] #invokelatest#2
      @ .\essentials.jl:1055 [inlined]
   [23] invokelatest
      @ .\essentials.jl:1052 [inlined]
   [24] run_main_repl(interactive::Bool, quiet::Bool, banner::Symbol, history_file::Bool, color_set::Bool)
      @ Base .\client.jl:430
   [25] repl_main
      @ .\client.jl:567 [inlined]
   [26] _start()
      @ Base .\client.jl:541
undefined update_field! warnings for AtmosModelSimulation: Error During Test at C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\interfacer_tests.jl:214
  Test threw exception
  Expression: Interfacer.update_field!(sim, val, dummy_field)
  MethodError: no method matching update_field!(::Main.var"##Interfacer tests#231".DummySimulation4{ClimaCore.Spaces.SpectralElementSpace2D{ClimaCore.Grids.SpectralElementGrid2D{ClimaCore.Topologies.Topology2D{ClimaComms.SingletonCommsContext{ClimaComms.CUDADevice}, ClimaCore.Meshes.EquiangularCubedSphere{ClimaCore.Domains.SphereDomain{Float32}, ClimaCore.Meshes.NormalizedBilinearMap}, Vector{CartesianIndex{3}}, Array{Int64, 3}, CUDA.CuArray{Tuple{Int64, Int64, Int64, Int64, Bool}, 1, CUDA.DeviceMemory}, Vector{Tuple{Int64, Int64, Int64, Int64, Bool}}, CUDA.CuArray{Tuple{Int64, Int64}, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, CUDA.CuArray{Tuple{Bool, Int64, Int64}, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, @NamedTuple{}, CUDA.CuArray{Tuple{Int64, Int64}, 1, CUDA.DeviceMemory}}, ClimaCore.Quadratures.GLL{4}, ClimaCore.Geometry.SphericalGlobalGeometry{Float32}, ClimaCore.DataLayouts.IJFH{ClimaCore.Geometry.LocalGeometry{(1, 2), ClimaCore.Geometry.LatLongPoint{Float32}, Float32, StaticArraysCore.SMatrix{2, 2, Float32, 4}}, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.DataLayouts.IJFH{Float32, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.DataLayouts.IFH{ClimaCore.Geometry.SurfaceGeometry{Float32, ClimaCore.Geometry.UVVector{Float32}}, 4, CUDA.CuArray{Float32, 3, CUDA.DeviceMemory}}, @NamedTuple{}, ClimaCore.DataLayouts.NoMask}}}, ::Val{:emissivity}, ::ClimaCore.Fields.Field{ClimaCore.DataLayouts.IJFH{Float32, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.Spaces.SpectralElementSpace2D{ClimaCore.Grids.SpectralElementGrid2D{ClimaCore.Topologies.Topology2D{ClimaComms.SingletonCommsContext{ClimaComms.CUDADevice}, ClimaCore.Meshes.EquiangularCubedSphere{ClimaCore.Domains.SphereDomain{Float32}, ClimaCore.Meshes.NormalizedBilinearMap}, Vector{CartesianIndex{3}}, Array{Int64, 3}, CUDA.CuArray{Tuple{Int64, Int64, Int64, Int64, Bool}, 1, CUDA.DeviceMemory}, Vector{Tuple{Int64, Int64, Int64, Int64, Bool}}, CUDA.CuArray{Tuple{Int64, Int64}, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, CUDA.CuArray{Tuple{Bool, Int64, Int64}, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, @NamedTuple{}, CUDA.CuArray{Tuple{Int64, Int64}, 1, CUDA.DeviceMemory}}, ClimaCore.Quadratures.GLL{4}, ClimaCore.Geometry.SphericalGlobalGeometry{Float32}, ClimaCore.DataLayouts.IJFH{ClimaCore.Geometry.LocalGeometry{(1, 2), ClimaCore.Geometry.LatLongPoint{Float32}, Float32, StaticArraysCore.SMatrix{2, 2, Float32, 4}}, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.DataLayouts.IJFH{Float32, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.DataLayouts.IFH{ClimaCore.Geometry.SurfaceGeometry{Float32, ClimaCore.Geometry.UVVector{Float32}}, 4, CUDA.CuArray{Float32, 3, CUDA.DeviceMemory}}, @NamedTuple{}, ClimaCore.DataLayouts.NoMask}}})
  The function `update_field!` exists, but no method is defined for this combination of argument types.

  Closest candidates are:
    update_field!(::ClimaCoupler.Interfacer.AtmosModelSimulation, ::Union{Val{:co2}, Val{:surface_direct_albedo}, Val{:surface_diffuse_albedo}, Val{:surface_temperature}, Val{:turbulent_fluxes}}, ::Any)
     @ ClimaCoupler C:\Users\kab\.julia\packages\ClimaCoupler\aL9xV\src\Interfacer.jl:172
    update_field!(::ClimaCoupler.Interfacer.SurfaceStub, ::Val{:air_density}, ::Any)
     @ ClimaCoupler C:\Users\kab\.julia\packages\ClimaCoupler\aL9xV\src\surface_stub.jl:48
    update_field!(::ClimaCoupler.Interfacer.SurfaceStub, ::Val{:snow_precipitation}, ::Any)
     @ ClimaCoupler C:\Users\kab\.julia\packages\ClimaCoupler\aL9xV\src\surface_stub.jl:59
    ...

  Stacktrace:
    [1] (::Main.var"##Interfacer tests#231".var"#3#4"{Main.var"##Interfacer tests#231".DummySimulation4{ClimaCore.Spaces.SpectralElementSpace2D{ClimaCore.Grids.SpectralElementGrid2D{ClimaCore.Topologies.Topology2D{ClimaComms.SingletonCommsContext{ClimaComms.CUDADevice}, ClimaCore.Meshes.EquiangularCubedSphere{ClimaCore.Domains.SphereDomain{Float32}, ClimaCore.Meshes.NormalizedBilinearMap}, Vector{CartesianIndex{3}}, Array{Int64, 3}, CUDA.CuArray{Tuple{Int64, Int64, Int64, Int64, Bool}, 1, CUDA.DeviceMemory}, Vector{Tuple{Int64, Int64, Int64, Int64, Bool}}, CUDA.CuArray{Tuple{Int64, Int64}, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, CUDA.CuArray{Tuple{Bool, Int64, Int64}, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, @NamedTuple{}, CUDA.CuArray{Tuple{Int64, Int64}, 1, CUDA.DeviceMemory}}, ClimaCore.Quadratures.GLL{4}, ClimaCore.Geometry.SphericalGlobalGeometry{Float32}, ClimaCore.DataLayouts.IJFH{ClimaCore.Geometry.LocalGeometry{(1, 2), ClimaCore.Geometry.LatLongPoint{Float32}, Float32, StaticArraysCore.SMatrix{2, 2, Float32, 4}}, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.DataLayouts.IJFH{Float32, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.DataLayouts.IFH{ClimaCore.Geometry.SurfaceGeometry{Float32, ClimaCore.Geometry.UVVector{Float32}}, 4, CUDA.CuArray{Float32, 3, CUDA.DeviceMemory}}, @NamedTuple{}, ClimaCore.DataLayouts.NoMask}}}, ClimaCore.Fields.Field{ClimaCore.DataLayouts.IJFH{Float32, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.Spaces.SpectralElementSpace2D{ClimaCore.Grids.SpectralElementGrid2D{ClimaCore.Topologies.Topology2D{ClimaComms.SingletonCommsContext{ClimaComms.CUDADevice}, ClimaCore.Meshes.EquiangularCubedSphere{ClimaCore.Domains.SphereDomain{Float32}, ClimaCore.Meshes.NormalizedBilinearMap}, Vector{CartesianIndex{3}}, Array{Int64, 3}, CUDA.CuArray{Tuple{Int64, Int64, Int64, Int64, Bool}, 1, CUDA.DeviceMemory}, Vector{Tuple{Int64, Int64, Int64, Int64, Bool}}, CUDA.CuArray{Tuple{Int64, Int64}, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, CUDA.CuArray{Tuple{Bool, Int64, Int64}, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, @NamedTuple{}, CUDA.CuArray{Tuple{Int64, Int64}, 1, CUDA.DeviceMemory}}, ClimaCore.Quadratures.GLL{4}, ClimaCore.Geometry.SphericalGlobalGeometry{Float32}, ClimaCore.DataLayouts.IJFH{ClimaCore.Geometry.LocalGeometry{(1, 2), ClimaCore.Geometry.LatLongPoint{Float32}, Float32, StaticArraysCore.SMatrix{2, 2, Float32, 4}}, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.DataLayouts.IJFH{Float32, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.DataLayouts.IFH{ClimaCore.Geometry.SurfaceGeometry{Float32, ClimaCore.Geometry.UVVector{Float32}}, 4, CUDA.CuArray{Float32, 3, CUDA.DeviceMemory}}, @NamedTuple{}, ClimaCore.DataLayouts.NoMask}}}, Val{:emissivity}})()
      @ Main.var"##Interfacer tests#231" .\none:0
    [2] with_logstate(f::Main.var"##Interfacer tests#231".var"#3#4"{Main.var"##Interfacer tests#231".DummySimulation4{ClimaCore.Spaces.SpectralElementSpace2D{ClimaCore.Grids.SpectralElementGrid2D{ClimaCore.Topologies.Topology2D{ClimaComms.SingletonCommsContext{ClimaComms.CUDADevice}, ClimaCore.Meshes.EquiangularCubedSphere{ClimaCore.Domains.SphereDomain{Float32}, ClimaCore.Meshes.NormalizedBilinearMap}, Vector{CartesianIndex{3}}, Array{Int64, 3}, CUDA.CuArray{Tuple{Int64, Int64, Int64, Int64, Bool}, 1, CUDA.DeviceMemory}, Vector{Tuple{Int64, Int64, Int64, Int64, Bool}}, CUDA.CuArray{Tuple{Int64, Int64}, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, CUDA.CuArray{Tuple{Bool, Int64, Int64}, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, @NamedTuple{}, CUDA.CuArray{Tuple{Int64, Int64}, 1, CUDA.DeviceMemory}}, ClimaCore.Quadratures.GLL{4}, ClimaCore.Geometry.SphericalGlobalGeometry{Float32}, ClimaCore.DataLayouts.IJFH{ClimaCore.Geometry.LocalGeometry{(1, 2), ClimaCore.Geometry.LatLongPoint{Float32}, Float32, StaticArraysCore.SMatrix{2, 2, Float32, 4}}, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.DataLayouts.IJFH{Float32, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.DataLayouts.IFH{ClimaCore.Geometry.SurfaceGeometry{Float32, ClimaCore.Geometry.UVVector{Float32}}, 4, CUDA.CuArray{Float32, 3, CUDA.DeviceMemory}}, @NamedTuple{}, ClimaCore.DataLayouts.NoMask}}}, ClimaCore.Fields.Field{ClimaCore.DataLayouts.IJFH{Float32, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.Spaces.SpectralElementSpace2D{ClimaCore.Grids.SpectralElementGrid2D{ClimaCore.Topologies.Topology2D{ClimaComms.SingletonCommsContext{ClimaComms.CUDADevice}, ClimaCore.Meshes.EquiangularCubedSphere{ClimaCore.Domains.SphereDomain{Float32}, ClimaCore.Meshes.NormalizedBilinearMap}, Vector{CartesianIndex{3}}, Array{Int64, 3}, CUDA.CuArray{Tuple{Int64, Int64, Int64, Int64, Bool}, 1, CUDA.DeviceMemory}, Vector{Tuple{Int64, Int64, Int64, Int64, Bool}}, CUDA.CuArray{Tuple{Int64, Int64}, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, CUDA.CuArray{Tuple{Bool, Int64, Int64}, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, CUDA.CuArray{Int64, 1, CUDA.DeviceMemory}, @NamedTuple{}, CUDA.CuArray{Tuple{Int64, Int64}, 1, CUDA.DeviceMemory}}, ClimaCore.Quadratures.GLL{4}, ClimaCore.Geometry.SphericalGlobalGeometry{Float32}, ClimaCore.DataLayouts.IJFH{ClimaCore.Geometry.LocalGeometry{(1, 2), ClimaCore.Geometry.LatLongPoint{Float32}, Float32, StaticArraysCore.SMatrix{2, 2, Float32, 4}}, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.DataLayouts.IJFH{Float32, 4, CUDA.CuArray{Float32, 4, CUDA.DeviceMemory}}, ClimaCore.DataLayouts.IFH{ClimaCore.Geometry.SurfaceGeometry{Float32, ClimaCore.Geometry.UVVector{Float32}}, 4, CUDA.CuArray{Float32, 3, CUDA.DeviceMemory}}, @NamedTuple{}, ClimaCore.DataLayouts.NoMask}}}, Val{:emissivity}}, logstate::Base.CoreLogging.LogState)
      @ Base.CoreLogging .\logging\logging.jl:522
    [3] with_logger(f::Function, logger::Test.TestLogger)
      @ Base.CoreLogging .\logging\logging.jl:632
    [4] #collect_test_logs#75
      @ C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\logging.jl:126 [inlined]
    [5] collect_test_logs
      @ C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\logging.jl:124 [inlined]
    [6] #match_logs#76
      @ C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\logging.jl:274 [inlined]
    [7] match_logs(f::Function, patterns::Tuple{Symbol, String})
      @ Test C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\logging.jl:273
    [8] macro expansion
      @ C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\interfacer_tests.jl:214 [inlined]
    [9] macro expansion
      @ C:\Users\kab\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\Test.jl:1704 [inlined]
   [10] top-level scope
      @ C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\interfacer_tests.jl:206
Test Summary:                                                | Pass  Error  Total   Time
Interfacer tests                                             |   82      3     85  29.7s
  test CoupledSim construction, float_type for FT=Float32    |           1      1   0.7s
  get_field indexing for FT=Float32                          |    6             6  17.0s
  get_field for a SurfaceStub for FT=Float32                 |    8             8   0.4s
  update_field! the SurfaceStub area_fraction for FT=Float32 |    4             4   0.4s
  test CoupledSim construction, float_type for FT=Float64    |           1      1   0.0s
  get_field indexing for FT=Float64                          |    6             6   4.1s
  get_field for a SurfaceStub for FT=Float64                 |    8             8   0.2s
  update_field! the SurfaceStub area_fraction for FT=Float64 |    4             4   0.4s
  name(::SurfaceStub)                                        |    1             1   0.0s
  undefined get_field for generic val                        |    1             1   0.1s
  undefined get_field for SurfaceModelSimulation             |    7             7   0.0s
  undefined get_field for AtmosModelSimulation               |   10            10   0.1s
  update_field! warnings for SurfaceModelSimulation          |   14            14   0.2s
  undefined update_field! warnings for AtmosModelSimulation  |    9      1     10   2.9s
  undefined step! error                                      |    1             1   0.0s
  undefined reinit! error                                    |    1             1   0.0s
  SurfaceStub step!                                          |    1             1   0.0s
  SurfaceStub reinit!                                        |    1             1   0.0s
ERROR: LoadError: Some tests did not pass: 82 passed, 0 failed, 3 errored, 0 broken.
in expression starting at C:\Users\kab\cc\clima\coupler\0.1.2\climacoupler.jl\test\runtests.jl:20

This was on a Windows 11 GPU machine running julia 1.11.2
Cheers

@waywardpidgeon
Copy link
Author

I have now tried the test set on a Windows 10 machine with the same test result as for Windows 11 GPU. One output I didn't notice in the previous was an "Exception outside of @test",

TypeError: in CoupledSimulation, in NTP, expected NTP<:NamedTuple, got Type{Nothing}

This was in the Windows 10 and 11 versions. The stacktrace is included in my previous comment.

PS I note my alma mater Columbia has had $400 million removed by the Trump administration from grants and student support, and that $40b has been cancelled from grants for climate related program's in the US. Please let me know whether or not CliMA is effected! I sincerely hope not.

@waywardpidgeon waywardpidgeon changed the title runtests.jl giving two Float errors and one update_field! warning runtests.jl giving two Float errors (a BUG ?) and one update_field! warning Mar 26, 2025
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