Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Unexpected concretization of Laplace operator #491

@fabiopierella

Description

@fabiopierella

Congrats for the great work you are doing in the DiffEqOperators package. I was trying to create a 2D Laplacian matrix, but I can’t seem to manage to be able to concretize it to the right Array.

MWE (Win10, julia 1.6, DiffEqOperators 4.29.0)


n = 10

Lxx = CenteredDifference{1}(2,2,1.,n) 
Lyy = CenteredDifference{2}(2,2,1.,n) 
D = Lxx + Lyy

Mxx = Array(D.ops[1], (n,n))
Myy = Array(D.ops[2], (n,n))

D = Lxx + Lyy

heatmap(Array(D, (n,n)))

Image I get:
mwe

Image I'd expect:
reference

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