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

Weird bug causing simulation divergence in certain cases #2930

Open
Wenjin-Xue opened this issue Nov 14, 2024 · 0 comments
Open

Weird bug causing simulation divergence in certain cases #2930

Wenjin-Xue opened this issue Nov 14, 2024 · 0 comments

Comments

@Wenjin-Xue
Copy link

meep_divergence_summary.zip
Hi all,

There seems to be a weird bug that causes simulation divergence for specific simulation setups.

The basic problem is that, sometimes the simulation will diverge when I add a block geometric object with the same material as the background material in the background region. However, when this block is not added, the simulation converges. Let's call this block as "redundant" block since it doesn't change the intended geometry for simulation.

The difference between the two simulations with and without "redundant" block is quite puzzling, and this phenomenon exists for various MEEP versions: v1.18.0, v1.23.0, v1.26.0, 1.27.0, 1.29.0. I didn't test other versions but I assume they are the same.

The example python code and the simulation output showing different results with and without "redundant" blocks are included in the attachment. The example python code can replicate the result described above. It would be great if you can figure out the reason and fix it, thank you very much!

Best,
Wenjin

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

No branches or pull requests

1 participant