[CIG-SEISMO] Compilation error for specfem3D_globe / PS

Julien Chaput jchaput82 at gmail.com
Mon May 30 17:38:49 PDT 2016


Hi,

Thanks for the reply. I'm currently running gcc 4.4.7 on Centos 6. I
suspect it's probably time to update to the latest standard, though I'm
glad it should be an easy fix. If the error persists after the upgrade,
I'll let you know.
Cheers

Julien

On Mon, May 30, 2016 at 5:49 PM, Dimitri Komatitsch <
komatitsch at lma.cnrs-mrs.fr> wrote:

>
> Hi again all,
>
> PS for David: BuildBot could/should have found this I guess because we
> compile with -f2003 when we check the standard (at least with Intel ifort,
> also with GNU gfortran I think), thus we should have seen an error for that
> new keyword that is in f2008 but not in f2003.
>
> Weird...
>
> thanks
> Dimitri
>
> On 31/05/2016 01:46, Dimitri Komatitsch wrote:
>
>>
>> Hi Julien, Hi all,
>>
>> Probably your Fortran compiler that does not support Fortran2008, and
>> Daniel (cc'ed) recently added the "contiguous" keyword, which is
>> specific to F2008.
>>
>> Daniel, could you maybe remove it? We need to make sure the code remains
>> portable.
>>
>> Thanks,
>> Dimitri.
>>
>> On 31/05/2016 00:22, Julien Chaput wrote:
>>
>>> Hi,
>>>
>>> I'm a newbie with specfem3D_globe, and am attempting to generate long
>>> coda (80000s) for arbitrary scattering structures to study the character
>>> of coda correlation functions.
>>> I'm currently running into a compilation problem (i.e. make specfem3D),
>>> though the mesher compiles without issues.
>>> The error I can't seem to get around is this:
>>>
>>> src/specfem3D/sepcfem3D_par.F90:402.25
>>> real(kind=CUSTOM_REAL), dimension(:), pointer, contiguous ::
>>> b_rmassz_crust_m
>>> 1
>>> Error: Invalid character in name at (1)
>>>
>>> This error is flagged at lines 402, 403, 404, 434, 438 581, 582, 612,
>>> 616 (before the error count maxes out).
>>>
>>> I'm currently using openmpi running on 24 cores, and have configured
>>> simply as:
>>> ./configure FC=mpif90 MPIFC=mpif90
>>> (I've also tried setting FC=gfortran to no avail).
>>> Has anyone encountered this sort of thing? As best I can understand (I'm
>>> not a native fortran programmer) it seems to be related to a syntax
>>> clash between fortran compilers.
>>> Thanks
>>>
>>> Julien Chaput
>>> Postdoctoral fellow
>>> Colorado State University
>>> jchaput82 at gmail.com <mailto:jchaput82 at gmail.com>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/cig-seismo/attachments/20160530/b51cadef/attachment.html>


More information about the CIG-SEISMO mailing list