-
Notifications
You must be signed in to change notification settings - Fork 626
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
WIP: allow add_srcdata to place sources on non-owned points #1547
Conversation
f0b470e
to
9d1440d
Compare
9d1440d
to
ea5ee8c
Compare
There are some compilation errors. In fix_boundary_sources.cpp, after adding
below this line and adding In order to test the code, I simply changed this line in simulation.py as
but |
@mawc2019 any updates on this? |
@smartalecH , Steven pointed out some revisions:
But the id registration of source time still fails in the adjoint run of my modified I plan to upload my modified |
Thanks for the update. Maybe submit a PR for what you have, and then we can all look at it. The adjoint recombination step was recently overhauled. In theory it shouldn't cause any problems, but you never know. |
With the aforementioned corrections added and the new FourierFields merged, the revised version of this WIP is here. When the FourierField adjoint solver needs the boundary fix (which may happen when
It seems that
|
Closed favor of #1959. |
For ongoing work in parallelizing the placement of adjoint sources for DFT fields using
add_srcdata
, we discovered that we need to place sources on non-owned points (since these are used for voxel-center averaging from the Yee grid). After the sources are added, this unfortunately requires a "cleanup" step, implemented in this PR, which transfers sources from non-owned points to the processors where they are actually located.