Skip to content

Reduction PR #881 breaks Oceananigans #889

@giordano

Description

@giordano

#881 broke reductions inside Oceananigans.

PRONTOLab/GB-25#45 (comment)

ERROR: LoadError: InexactError: Int64(Inf)
Stacktrace:
  [1] Int64
    @ ./float.jl:994 [inlined]
  [2] convert
    @ ./number.jl:7 [inlined]
  [3] _round_convert
    @ ./rounding.jl:480 [inlined]
  [4] round
    @ ./rounding.jl:479 [inlined]
  [5] ceil(::Type{Int64}, x::Float64)
    @ Base ./rounding.jl:476
  [6] split_explicit_substepping

Code in Oceananigans:
https://github.com/CliMA/Oceananigans.jl/blob/875a06a0964115c7f6ea1ca14c12ede5272d5ab1/src/Fields/field.jl#L671
https://github.com/CliMA/Oceananigans.jl/blob/875a06a0964115c7f6ea1ca14c12ede5272d5ab1/src/Fields/field.jl#L620
https://github.com/CliMA/Oceananigans.jl/blob/875a06a0964115c7f6ea1ca14c12ede5272d5ab1/src/Fields/field.jl#L715

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions