coutanto / axitra

numerical modelling of seismic wave propagation in 3D with flat layer models
GNU General Public License v3.0
43 stars 16 forks source link

add 1 to rindex when computing the seismograms to account for Python … #8

Closed ebeauce closed 2 years ago

ebeauce commented 2 years ago

…and Fortran different indexing

I figured that the segmentation fault in convmPy.f90 occurred in the loop computing the seismograms in the time domain. It seems that it's just that you forgot to correct for the python vs fortran index convention when using rindex (which starts at 0) to index fortran arrays.

I added one line to explicitly show the end of the OMP DO ORDERED.