-
Notifications
You must be signed in to change notification settings - Fork 103
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
Multiple BC Fix #354
base: main
Are you sure you want to change the base?
Multiple BC Fix #354
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #354 +/- ##
===========================================
- Coverage 41.02% 27.57% -13.45%
===========================================
Files 13 13
Lines 4119 4119
===========================================
- Hits 1690 1136 -554
- Misses 2429 2983 +554
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@sseraj @eirikurj The failing tests are passing locally so I'm not sure what is happening. This specific test is just checking the totals of BC integrated functions computed with the adjoint against the totals that are saved in the training data. Locally it matches to 1e-12 absolute and relative tolerance, but on the images it's at worst getting 1e-6 absolute and 1e-5 relative. Any debugging tips on what might be happening? |
I have had tests fail like this when the flow converges fine locally but does not fully converge on the Docker images. I would check that the flow and adjoint both converge to the same level on the Docker images as on your local machine. You might have to increase |
Following the discussion in #358 we should update the patch version in this PR when it's eventually ready. |
Purpose
This PR addresses a bug where adding multiple BCs of the same type didn't work as expected. Previously, only the first BC of a given type would be properly added and tracked, but then any subsequent BC of the same type would be ignored. This resulted in incorrect functionals and derivatives with zero seeds.
Using the suggested fixes from PR #323 this should now be fixed. I added a new mesh to
input_files
and tests to make sure this is working correctly.Expected time until merged
1-3 weeks
Type of change
Testing
Run
testflo tests/reg_tests/test_multiple_bc.py
to test the changes. You can also run the complex tests in the same file to verify the derivatives are working as expected.Checklist
flake8
andblack
to make sure the Python code adheres to PEP-8 and is consistently formattedfprettify
or C/C++ code withclang-format
as applicable