This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
dz, dx, and dy should be float #229
Comments
Hey Yuri, thanks. Could you post some code they causes the error you mention? I think I understand but would be nice to have a minimum failing example. |
I see. Yea the problem is the width/height divided by the number of points in the two dimensions is below 1. You're right that this should improve the location of the level set in the velocity model. I would just remove the type casts to int for the dx and dz and see what happens. I won't be able to do this for a couple more days but please feel free to try it and run the tests and your example. Then submit a pull request from your fork, if you want. |
Merged
@Yuri-Albuquerque please try this again with the latest commit on master. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
SeismicMesh/SeismicMesh/sizing/mesh_size_function.py
Line 479 in 03839c1
Hi, @krober10nd I think dz, dx, dy needs to be
float
. Usingint()
is causing a division by zero in _build_domain_pad function, when some of the widths (in x, z, or y directions) are smaller than nx, nz, or ny.The text was updated successfully, but these errors were encountered: