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

Convert several mode solver methods to staticmethods #2008

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

weiliangjin2021
Copy link
Collaborator

@weiliangjin2021 weiliangjin2021 commented Oct 9, 2024

The goal of this PR is to convert all methods involved in _solve_single_freq to staticmethods, so that calling _solve_single_freq in a multiprocessing pool will not serialize unrelated data in mode solver. This is very helpful when the simulation field in mode solver is huge.

@weiliangjin2021 weiliangjin2021 marked this pull request as draft October 9, 2024 01:51
@weiliangjin2021 weiliangjin2021 marked this pull request as ready for review October 11, 2024 23:05
Copy link
Collaborator

@tylerflex tylerflex left a comment

Choose a reason for hiding this comment

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

looks good to me

tidy3d/plugins/mode/mode_solver.py Outdated Show resolved Hide resolved
@weiliangjin2021 weiliangjin2021 merged commit 8bb5f5b into pre/2.8 Oct 17, 2024
15 checks passed
@weiliangjin2021 weiliangjin2021 deleted the weiliang/mode_file branch October 17, 2024 20:38
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