Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

error on a function with DiffEqOperators #35

@Eben60

Description

@Eben60

The following code (MWE) results in
LoadError: MethodError: objects of type TypeVar are not callable
Both Win10 and Mac, Julia 1.4.2, freshly updated all packages (SparsityDetection 0.3.2, DiffEqOperators 4.10.0)

using DiffEqOperators
using SparsityDetection, SparseArrays

nknots = 10
h = 1.0/(nknots+1)

const Δ = CenteredDifference(2, 2, h, nknots)
u0 = rand(nknots, nknots)

function st!(du,u,p,t)
   du .= 0.0
   du[1,:] .= Δ*Dirichlet0BC(Float64)*view(u,1,:)
   return nothing
end

outp = similar(u0)
# st!(outp,u0, nothing, 0.0)
sparsity_pattern = jacobian_sparsity(st!,outp,u0, nothing, 0.0)

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