Skip to content

Commit

Permalink
Merge pull request #5 from pfcrowe/patch-6
Browse files Browse the repository at this point in the history
Update MOLFiniteDifference.md
  • Loading branch information
pfcgit committed Mar 30, 2022
2 parents 327a338 + 2b9c600 commit d50fff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/MOLFiniteDifference.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Where `dxs` is a vector of pairs of parameters to the grid step in this dimensio

Note that the second argument to `MOLFiniteDifference` is optional, all parameters can be discretized if all required boundary conditions are specified.

Currently supported grid types: `center_align` and `edge_align`. Edge align will give better accuracy with Neumann Boundary conditions.
Currently supported grid types: `center_align` and `edge_align`. Edge align will give better accuracy with Neumann boundary conditions.

`center_align`: naive grid, starting from lower boundary, ending on upper boundary with step of `dx`

`edge_align`: offset grid, set halfway between the points that would be generated with center_align, with extra points at either end that are above and below the supremum and infimum by `dx/2`. This improves accuracy for neumann BCs.
`edge_align`: offset grid, set halfway between the points that would be generated with center_align, with extra points at either end that are above and below the supremum and infimum by `dx/2`. This improves accuracy for Neumann BCs.

0 comments on commit d50fff5

Please sign in to comment.