Legacy boundary conditions - #3420
Conversation
…et and Neumann BCs. - This is what we used to do in Bout++ version 3. - Higher order extrapolation can be unstable sometimes so I added back the 1st order BC. You can use thm in the input file by setting e.g. dirichlet_o1. - Implementation for staggered grids is not done.
… the rest of the BC code. -This was a later change to the BCs
Could you add an assert? Also, please fix the clang-tidy and clang-format issues. |
I have this line here: BOUT-dev/src/mesh/boundary_standard.cxx Line 154 in a960447 throw BoutException("neumann_o1 BC is not implementated for staggered grids."); That throws an Exception if this BC is used with staggered grids. Does this BoutException work as an error message or a an assert statement? Also, I used: git clang-format origin/next for the formatting. Is there another command I sue use for clang-tidy? |
That is sufficient. However, it would be better to check whether the fields location is at CELL_CENTRE.
Formatting is now fine. For clang-tidy you see the comments that it posts. Some of them would require a refactoring, which is probably not in scope for this PR, like this:
|
Whether staggering is enabled or not does not really matter.
dschwoerer
left a comment
There was a problem hiding this comment.
This looks decent. The only question is whether we want to add more stuff to boundary_standard
Added a legacy implementation of 1st order Dirichlet and Neumann BCs.