malcolmw / pykonal

Travel-time calculator based on the fast-marching method solution to the Eikonal equation.
https://malcolmw.github.io/pykonal-docs/
GNU General Public License v3.0
154 stars 55 forks source link

Field fixes #26

Closed jobh closed 1 year ago

jobh commented 1 year ago

This fixes some "user errors" I have encountered. Like user setting dz=0 (error) or dz=1 (too small step size when dy/dx are large) in 2D. Or segmentation fault when stepping into zero-velocity region.

malcolmw commented 1 year ago

Thanks, @jobh for these fixes! And good catch on the node_interval <= 0 test. I am going to merge these.