Skip to content

fix[adjoint]: update polyslab in simulation bounds check to allow for… #2681

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

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

groberts-flex
Copy link
Contributor

… slabs of zero thickness

is_2d = np.isclose(extents[self.axis], 0.0)
polyslab_2d = np.isclose(np.diff(self.slab_bounds), 0.0)
sim_2d = np.isclose(extents[self.axis], 0.0)
is_2d = polyslab_2d and sim_2d
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is failing a unit test - actually I think maybe we don't want to add the polyslab_2d check in here for cases like the unit test that's failing where the simulation is 2d but the polyslab isn't. in that case, the polyslab should still be integrated as if it was 2d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant