[CIG-SEISMO] specfem2d compilation problem: hgll
phil.cummins at anu.edu.au
Fri May 22 22:38:08 PDT 2015
Uh, no, sorry Iw as wrong, I had the wrong machine! It compiles fine on
our ubuntu machine using gfortran, but it fails on the SuSE machine usng
ifort. Again, it looks to me like the fortran code has dealt with hgll
correctly, so I am really stumped.
Phil Cummins wrote:
> Yep, that was the problem. I downloaded it again and it compiles fine.
> Many thanks!
> Dimitri Komatitsch wrote:
>> 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:
>>> I have configured specfem2d --with-mpi and am trying to compile it
>>> 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
>>> 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?
>>> - Phil
>>> CIG-SEISMO mailing list
>>> CIG-SEISMO at geodynamics.org
> Phil Cummins
> Prof. Natural Hazards
> Research School of Earth Sciences
> Australian National University
> CIG-SEISMO mailing list
> CIG-SEISMO at geodynamics.org
Prof. Natural Hazards
Research School of Earth Sciences
Australian National University
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CIG-SEISMO