daniel-koehn / DENISE-Black-Edition

2D time-domain isotropic (visco)elastic FD modeling and full waveform inversion (FWI) code for P/SV-waves
GNU General Public License v2.0
121 stars 66 forks source link

Segmentation fault with READREC==2 #12

Closed ar4 closed 5 years ago

ar4 commented 5 years ago

Setting READREC==2 causes a segmentation fault.

When doing forward modeling, this occurs at https://github.com/daniel-koehn/DENISE-Black-Edition/blob/74b57f25bdb7ff667ab6a37fa430acafd5745ebe/src/PSV/FD_PSV.c#L387

When doing FWI, this occurs at https://github.com/daniel-koehn/DENISE-Black-Edition/blob/74b57f25bdb7ff667ab6a37fa430acafd5745ebe/src/PSV/FWI_PSV.c#L928

daniel-koehn commented 5 years ago

Thanks for the bug report, I fixed the issue related to READREC==2 in the PSV, SH, AC, TTI and VTI modules of DENISE Black-Edition