Skip to content

Variable and function name conflict in the tutorial #189

@henry2004y

Description

@henry2004y

Hi,

When I tried to run the tutorial demos using Julia v1.11.5, I encountered the following error:

using GeometricIntegrators

function (v, t, x, params)
    v[1] = x[2]
    v[2] = sin(x[1])
end

tspan = (0.0, 10.0)
tstep = 0.1
x₀ = [acos(0.4), 0.0]

ode = ODEProblem(ẋ, tspan, tstep, x₀)
ERROR: cannot assign a value to imported variable GeometricIntegrators.tstep from module Main

An easy fix would be simply renaming tstep to Δt I guess?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions