[CIG-SEISMO] Compilation error for specfem3D_globe / PS

Julien Chaput jchaput82 at gmail.com
Wed Jun 1 16:47:29 PDT 2016


Okay, it looks like everything compiles on gcc 5.3.0 at a minimum. It might
perhaps be useful to add a note in the manual?
Cheers

Julien

On Tue, May 31, 2016 at 1:05 AM, Daniel B. Peter <daniel.peter at kaust.edu.sa>
wrote:

> Hi all,
>
> Dimitri is right, that’s 2008 standard. the contiguous keyword is
> implemented by most compilers by now, so please try updating the compiler.
>
> when choosing —enable-debug, it tests for standard 2008 or the gnu
> extension in case gfortran is used, that’s why buildbot is allowing it.
>
> best wishes,
> daniel
>
>
> On May 31, 2016, at 3:38 AM, Julien Chaput <jchaput82 at gmail.com> wrote:
>
> 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
>>
>
>
>
> ------------------------------
>
> This message and its contents including attachments are intended solely
> for the original recipient. If you are not the intended recipient or have
> received this message in error, please notify me immediately and delete
> this message from your computer system. Any unauthorized use or
> distribution is prohibited. Please consider the environment before printing
> this email.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/cig-seismo/attachments/20160601/c78fc16c/attachment.html>


More information about the CIG-SEISMO mailing list