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

Add changes requested in issue 490 #570

Merged
merged 2 commits into from
Oct 23, 2018
Merged

Add changes requested in issue 490 #570

merged 2 commits into from
Oct 23, 2018

Conversation

ChristopherHogan
Copy link
Contributor

@coveralls
Copy link

coveralls commented Oct 19, 2018

Coverage Status

Coverage increased (+0.04%) to 81.979% when pulling a16ddac on ChristopherHogan:chogan/issue_490 into f1d972d on stevengj:master.

@@ -1237,7 +1237,9 @@ def modal_volume_in_box(self, box=None, center=None, size=None):
def solve_cw(self, tol=1e-8, maxiters=10000, L=2):
if self.fields is None:
raise RuntimeError('Fields must be initialized before using solve_cw')
return self.fields.solve_cw(tol, maxiters, L)
res = self.fields.solve_cw(tol, maxiters, L)
self._evaluate_dft_objects()
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line needs to go before solve_cw, I think, so that the update_dfts() call in solve_cw will take effect?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. This is green.

@stevengj stevengj merged commit 15f6fd1 into NanoComp:master Oct 23, 2018
@ChristopherHogan ChristopherHogan deleted the chogan/issue_490 branch October 31, 2018 13:46
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
* Add changes requested in issue 490

* evaluate dft objects before solve_cs
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.

3 participants