You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fractional exponent will error if the argument is negative.
In ClimaLand.jl, we have such fractional exponent in src/standalone/Soil/Biogeochemistry/co2_parameterizations.jl for example. We should add a warning if the argument is negative (it should not happen).
We may need to discuss more what is the best approach, and where this is happening.
below is the error returned by Julia:
julia> (-1)^0.5
ERROR: DomainError with -1.0:
Exponentiation yielding a complex result requires a complex argument.
Replace x^y with (x+0im)^y, Complex(x)^y, or similar.
The text was updated successfully, but these errors were encountered:
Fractional exponent will error if the argument is negative.
In ClimaLand.jl, we have such fractional exponent in
src/standalone/Soil/Biogeochemistry/co2_parameterizations.jl
for example. We should add a warning if the argument is negative (it should not happen).See closed PR #841
We may need to discuss more what is the best approach, and where this is happening.
below is the error returned by Julia:
The text was updated successfully, but these errors were encountered: