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

problem with "make denise" code #41

Open DanielVais96 opened 1 year ago

DanielVais96 commented 1 year ago

Hello, I am going through the QUICKSTART_Marmousi.txt and I have a problem with code "make denise"(step 3) . I tried all compiler options that exist in Makefile and it didn't work. I working with Ubuntu os, gcc version 11.3.0, Open MPI 4.1.2, fftw version 3.3.8 .

currently I am using this configurations in Makefile:

On Desktop computer with LinuxMint 17, OpenMPI and gcc 4.8.2 CC=mpicc LFLAGS=-lm -lcseife -lfftw3 -lstdc++ CFLAGS=-O3 -w -fno-stack-protector -D_FORTIFY_SOURCE=0 SFLAGS=-L./../libcseife IFLAGS=-I./../libcseife -I./../include

this is file with the terminal output: problem.txt

hope you can help. thank you.

daniel-koehn commented 1 year ago

Hi @DanielVais96,

Your issue seem to be related to the new GNU Compiler. Adding the option

-fcommon

to the CFLAGS in the Makefile and recompile the source code should solve the problem

Best regards,

Daniel