Skip to content
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

fix bug in copy assignment for material grid #1591

Merged
merged 4 commits into from
Jun 4, 2021

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Jun 4, 2021

Fixes a bug introduced in #1583 which is causing the unit test for a MaterialGrid as a default material (in python/tests/material_grid.py) to currently fail.

@oskooi oskooi added the bug label Jun 4, 2021
@oskooi
Copy link
Collaborator Author

oskooi commented Jun 4, 2021

Also fixes another bug that was causing two unit test failures in python/tests/simulation.py: test_epsilon_input_file and test_numpy_epsilon.

With these changes, all the unit tests are passing.

src/meepgeom.cpp Outdated Show resolved Hide resolved
@stevengj stevengj merged commit 2d90872 into NanoComp:master Jun 4, 2021
@oskooi oskooi deleted the default_matgrid_bugfix branch June 4, 2021 19:22
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
* fix bug in copy assignment for material grid

* do not delete default_material if it is identical to _default_material

* replace two checks with one

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

Successfully merging this pull request may close these issues.

3 participants