Simple second order accurate gradient #2807
Unanswered
cdelavegamartin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Kind of related to this discussion , I've been implementing a second order accurate gradient, using centered differences in the interior, and one-sided second order scheme at the edges, ie, something where the matrix blocks for each component look like this for h=1:
With
devito:Questions:
TypeError: 'Derivative' object is not subscriptableOr computes something that is incorrect
order=2doesn't work as expected, butfd_order=2does ( Iassume is passing it to the child objects?Beta Was this translation helpful? Give feedback.
All reactions