Skip to content

Inconsistent behavior when saving TaylorNs with JLD2 v0.4 #373

@LuEdRaMo

Description

@LuEdRaMo

When saving a long Vector{TaylorN{Float64}} with JLD2 v0.4 (required minor version in Project.toml) I get inconsistent results:

v = set_variables(Float64, "dx"; order = 5, numvars = 6)
x = [exp(sum(rand(6) .* v)) for _ in 1:10_000]
begin
    for _ in 1:10
        jldsave("test.jld2"; x)
        y = JLD2.load("test.jld2", "x")
        println(count(x .!= y))
    end
end
# 3451, 1967, 965, 0, 0, 0, 2051, 0, 1663, 1305

But with JLD2 v0.5 (latest minor version), everything works:

# 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

¿@lbenet can you reproduce this?

Metadata

Metadata

Assignees

No one assigned

    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