-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#705 fix sign error #706
#705 fix sign error #706
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice one Rob!
@@ -461,6 +461,43 @@ def test_pure_neumann_poisson(self): | |||
u_exact = z ** 2 / 2 - 1 / 6 | |||
np.testing.assert_array_almost_equal(solution.y[:-1], u_exact, decimal=1) | |||
|
|||
def test_dirichlet_bcs(self): | |||
# manufactured solution u = a*z^2 + b*z + c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
Codecov Report
@@ Coverage Diff @@
## master #706 +/- ##
=======================================
Coverage 98.17% 98.17%
=======================================
Files 176 176
Lines 9135 9135
=======================================
Hits 8968 8968
Misses 167 167
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one
Description
Fixes a sign error when implementing Dirichlet BCs in the finite element method
EDIT: also fixes a bug where spatial variables were discretised to a vector of length N_y or N_z for y and z, respectively, instead of a vector of length N_y*N_z
Fixes #705
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s.
Key checklist:
$ flake8
$ python run-tests.py --unit
$ cd docs
and then$ make clean; make html
You can run all three at once, using
$ python run-tests.py --quick
.Further checks: