Skip to content

Unable to reproduce results in the tutorials. #2574

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

Open
hannanmustajab opened this issue Apr 7, 2025 · 1 comment
Open

Unable to reproduce results in the tutorials. #2574

hannanmustajab opened this issue Apr 7, 2025 · 1 comment

Comments

@hannanmustajab
Copy link

Hey, I am trying to reproduce this tutorial ( https://slimgroup.github.io/Devito-Examples/tutorials/07_elastic_varying_parameters/ ), but I am unable to achieve the same results as shown in the example. I am encountering the same issue with other tutorials as well. The final plots do not appear as expected, and I am experiencing similar issues when using my own parameters. Can you please help me with this? This is the Colab notebook where you can see the results.

https://colab.research.google.com/drive/1g8-NbjjRQ5TLR9rj5IkOqu10OrRqJvHz?usp=sharing

[

Image

](url)

Best,
Hannan

@mloubout
Copy link
Contributor

mloubout commented Apr 7, 2025

The notebook you are using as reference is an old one that hasn't been update for a while and contains equation that will not work. You should use the devito documentation one for reference that is tested and known to be correct:

https://www.devitoproject.org/examples/seismic/tutorials/06_elastic_varying_parameters.html

In particular you should use mu * (grad(v.forward) + grad(v.forward).transpose(inner=False)))) instead of mu * (grad(v.forward) + grad(v.forward).T))) to avoid using wrong sign derivatives.

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

2 participants