ClimaLand.jl icon indicating copy to clipboard operation
ClimaLand.jl copied to clipboard

`Land.jl` fails on CPU

Open imreddyTeja opened this issue 6 months ago • 0 comments

Describe the bug

Running both experiments/benchmarks/land.jl and experiments/long_runs/land.jl on CPU fails with error

ERROR: LoadError: DomainError with -0.5324317979740165:
Exponentiation yielding a complex result requires a complex argument.
Replace x^y with (x+0im)^y, Complex(x)^y, or similar.
Stacktrace:
  [1] throw_exp_domainerror(x::Float64)
    @ Base.Math ./math.jl:41
  [2] ^(x::Float64, y::Float64)
    @ Base.Math ./math.jl:1206
  [3] compute_ρ_sfc(thermo_params::Thermodynamics.Parameters.ThermodynamicsParameters{Float64}, ts_in::Thermodynamics.PhaseEquil{Float64}, T_sfc::Float64)
    @ ClimaLand ~/ClimaLand.jl/src/shared_utilities/drivers.jl:204

To Reproduce

Run either experiments/benchmarks/land.jl and experiments/long_runs/land.jl on CPU. They sometimes will run without error if the tf and Δt values are changed.

System details

Ran on clima Any relevant system information:

  • modules loaded on cluster : 1) openmpi/4.1.5-mpitrampoline 2) julia/1.10.0 3) cuda/julia-pref 4) common

imreddyTeja avatar Aug 24 '24 00:08 imreddyTeja