-
Notifications
You must be signed in to change notification settings - Fork 629
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
Check for invalid sources at r=0 in cylindrical coordinates #2392
Conversation
There is a single failing test in meep/python/tests/test_adjoint_cyl.py Lines 39 to 42 in b86b476
The current results therefore do not seem to be accurate because of the Perhaps we need to modify this test to exclude cc @mochen4 |
This check is not reliable, because the user-specified amplitude function (Also, note that for m=0 the phi and r components should be zero at r=0.) |
As Steven pointed out, the source can be valid if the amplitude is 0 at |
Don't we already have A at every point when we create src_vol to add the sources? Can we do the check here? Line 273 in 601609f
|
Added an additional check for this case.
Good suggestion. I have moved the check from I tested these changes internally with a couple of tests. It seems to work correctly. |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #2392 +/- ##
=======================================
Coverage 72.57% 72.57%
=======================================
Files 17 17
Lines 5166 5166
=======================================
Hits 3749 3749
Misses 1417 1417
|
Adds a check within$r=0$ in cylindrical coordinates.
fields::add_volume_source
src_vol_chunkloop
fortwothree different types of invalid sources at