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 non Hermitian epsilon case #270

Merged
merged 2 commits into from
Apr 6, 2018
Merged

Fix non Hermitian epsilon case #270

merged 2 commits into from
Apr 6, 2018

Conversation

ChristopherHogan
Copy link
Contributor

Fixes #269. Only use the real part of <epsilon|mu>_offdiag when MPB wasn't built with WITH_HERMITIAN_EPSILON. I recall doing this before, but it must have been undone by a rebase.
@stevengj @oskooi

@stevengj
Copy link
Collaborator

stevengj commented Apr 5, 2018

It seems like we should throw an error if nonzero imaginary parts are passed in this case?

@ChristopherHogan
Copy link
Contributor Author

Added checks for imaginary parts of epsilon and mu offdiags when not using Hermitian epsilon. For mediums, the check is performed once for the default material and once for each geometric object's material. User and file materials are checked on every material_epsmu call.

@stevengj stevengj merged commit f080137 into NanoComp:master Apr 6, 2018
@ChristopherHogan ChristopherHogan deleted the chogan/non_herm_eps branch April 6, 2018 01:51
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
* Fix non Hermitian epsilon case

* Add check_offdiag when we're not using Hermitian eps
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.

2 participants