Skip to content

Unable to reproduce results in the tutorials. #2574

Description

@hannanmustajab

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

Activity

  1. mloubout commented on Apr 7, 2025

    @mloubout
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions