Skip to content
Discussion options

You must be logged in to vote

Ah I see. The boundary conditions are applied to the variable inside the grad, so you have to write your model in a way that the variable in the grad is the one that you have boundary conditions for (e.g. by applying the chain/product rule). Off-by-two shape error means that the boundary conditions have not been correctly applied.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@CSchwet
Comment options

@valentinsulzer
Comment options

Answer selected by CSchwet
@CSchwet
Comment options

@valentinsulzer
Comment options

@CSchwet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants