[CIG-SEISMO] [mpich-discuss] MPICH mpif.h incompatible with gfortran-4.8 -std=f2003

Dimitri Komatitsch komatitsch at lma.cnrs-mrs.fr
Sat Jun 29 05:16:36 PDT 2013


Dear all,

The (only) three things to do to make mpif.h conform to recent standards 
(F90, F95, F2003) would be:

- change all character* declarations to character(len=...)

- change all real*8 to either double precision or real(kind=8)  (both 
are OK)

- change all integer*8 to integer(kind=8)


The reason is that F90 considers F77-style declarations 
"type_of_the_variable*" as obsolescent and outputs a warning, and F95 
and later consider that as obsolete and refuse to compile.

Thanks,
Dimitri.


On 06/29/2013 01:36 AM, Jeff Hammond wrote:
> On Jun 28, 2013, at 5:56 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>
>> Jeff Hammond <jeff.science at gmail.com> writes:
>>
>>> mpif.h is for F77 codes. Use the module for F90+.  There is no point
>>> in fixing mpif.h for F03 because the solution already exists.
>>
>> It would be trivially easy to make work, though probably not to get rid
>> of the warnings.
>>
> Great. We look forward to your patch.
>
>>> The F08 bindings in MPI-3 are the long-term solution.
>>
>> Yup, and your son will be in college by the time MPI-3 is available on
>> all supported RHEL versions. ;-)
>
> You can compile MPICH 3.0.4 on Linux today. It's trivial. Why wait for
> RPMs? Those might even exist already too. Did you check the MPICH
> website?
>
> Jeff
> _______________________________________________
> CIG-SEISMO mailing list
> CIG-SEISMO at geodynamics.org
> http://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