[CIG-SEISMO] specfem2d compilation problem: hgll

Dimitri Komatitsch komatitsch at lma.cnrs-mrs.fr
Fri May 22 03:57:28 PDT 2015


Could you get the latest version and try again? We improved the Makefile 
system in recent weeks and fixed a few missing dependencies.

Best regards,

On 05/22/2015 10:40 AM, Phil Cummins wrote:
> Hello,
> I have configured specfem2d --with-mpi and am trying to compile it using
> the mpif90 command of the ifort compiler version 11.1, on a machine
> running SUSE Linux Enterprise Server 11. When compiling and linking the
> main program specfem2D, I get the error:
> mpif90  -DUSE_MPI  -O3 -check nobounds -xHost -fpe0 -ftz -assume
> buffered_io -assume byterecl -align sequence -vec-report0 -std03
> -implicitnone -gen-interfaces -warn all -I../../setup -c -o
> ../../obj/specfem2D.o ./specfem2D.F90
> specfem2D.F90(1157): error #6405: The same named entity from different
> modules and/or program units cannot be referenced.   [HGLL]
>        if(AXISYM) flagrange_GLJ(j,i) = hgll(j-1,xirec,xiglj,NGLJ)
> --------------------------------------^
> compilation aborted for ./specfem2D.F90 (code 1)
> I can't figure this out. hgll is declared as external in the module
> specfem2D_par, which is used in specfem2D, and hgll is defined in the
> module langrange_poly, with which specfem2D is linked. So that all seems
> fine and I don't understand why the compiler would complain. Has anyone
> else encountered this and if so do you know of a workaround?
> Thanks,
> - Phil
> _______________________________________________
> CIG-SEISMO mailing list
> CIG-SEISMO at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/cig-seismo

Dimitri Komatitsch
CNRS Research Director (DR CNRS), Laboratory of Mechanics and Acoustics,
UPR 7051, Marseille, France    http://komatitsch.free.fr

More information about the CIG-SEISMO mailing list