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

Conversation

@ChrisRackauckas
Copy link
Member

No description provided.

@ChrisRackauckas
Copy link
Member Author

This is getting the wrong boundary coefficients. MWE:

using DiffEqOperators
stencil_length = 3
dummy_x = -div(stencil_length,2) : div(stencil_length,2)
deriv_spots = -div(stencil_length,2) : -1
DiffEqOperators.calculate_weights(2, 0.0, dummy_x)
[DiffEqOperators.calculate_weights(2, 1.0x0, dummy_x) for x0 in deriv_spots]

should be the left centered stencil for the last one?

@ChrisRackauckas
Copy link
Member Author

Centering by changing the x seems off as well:

using DiffEqOperators
stencil_length = 3
dummy_x = -div(stencil_length,2) : div(stencil_length,2)
deriv_spots = [dummy_x .+ i for i in 1:div(stencil_length,2)]
DiffEqOperators.calculate_weights(2, 0.0, dummy_x)
[DiffEqOperators.calculate_weights(2, 0.0, x) for x in deriv_spots]

@ChrisRackauckas ChrisRackauckas merged commit 602cd38 into master Jun 9, 2019
@ChrisRackauckas ChrisRackauckas deleted the L branch June 9, 2019 14:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants