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 get_eigenmode for diffractedplanewave object #1955

Merged
merged 2 commits into from
Feb 21, 2022

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Feb 21, 2022

Fixes #1950.

@oskooi oskooi changed the title Fix bug in get_eigenmode for diffractedplanewave Fix bug in get_eigenmode for diffractedplanewave object Feb 21, 2022
@oskooi oskooi merged commit 077f1a9 into NanoComp:master Feb 21, 2022
@oskooi oskooi deleted the dp_bug_fix branch February 21, 2022 03:03
@@ -604,10 +604,10 @@ void *fields::get_eigenmode(double frequency, direction d, const volume where, c
int m = 0;
LOOP_OVER_DIRECTIONS(v.dim, dd) {
m = dp->get_g()[dd - X];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be worth putting this line inside the if as well.

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