[QE-developers] Fortran features support in QE code
Ye Luo
xw111luoye at gmail.com
Wed Mar 14 23:20:28 CET 2018
Languages have ISO standards.
The maturity of compiler implementations of a language standard is very
important when adopting.
This a page summarizing compiler support of fortran 2008
http://fortranwiki.org/fortran/show/Fortran+2008+status
The BLOCK construct is a hole for PGI compiler even in 2018 release which
claimed a F2003 compiler.
Other compilers like GNU, INTEL, IBM should support 2008 already.
BLOCK is designed to provide the effect of scoping and you are allowed to
declare variables locally instead of in the beginning.
I think this helps compilers to identify locality and make optimization
more efficient. It also helps the code readability.
Some additional comment,
QE manual says "you need C and Fortran-90/95/2003 compilers". This is a
very vague statement.
It doesn't make sense to compile part in F95 and part in F2003 and it is
also not necessary.
For C it needs at least C89,
For Fortran, it needs F2003 if hdf5 is turned on.
For this reason, I think having F2003 as a baseline is fine for QE since
F2003 is fully supported by major compilers.
Ye
===================
Ye Luo, Ph.D.
Leadership Computing Facility
Argonne National Laboratory
2018-03-14 16:40 GMT-05:00 Paolo Giannozzi <p.giannozzi at gmail.com>:
> There are no exact rules. My opinion is that only language features that
> are well supported by most important compilers since at least a few years
> (let us say 5) should be included. What are those "blocks" good for?
>
> Paolo
>
> On Wed, Mar 14, 2018 at 5:39 PM, Miguel Carvajal <
> krvajal.miguelangel at gmail.com> wrote:
>
>> Hello,
>> is it possible to use this block constructor in the QE code,
>> https://www.ibm.com/support/knowledgecenter/en/SS2MB5_14.1.
>> 0/com.ibm.xlf141.bg.doc/language_ref/blockcon.html
>> or it is forbidden to maintain compatibility with old browsers?
>>
>>
>>
>> *Miguel Carvajal* PhD
>> [image: photo]
>> Mobile: +32 465 35 71 77
>> Email: miguel.carvajalrivero at uantwerpen.be
>> <//miguel.carvajalrivero at uantwerpen.be>
>> Address: CMT Groenenborgerlaan 171, BE-2020 Antwerpen
>> <https://maps.google.com/?q=Groenenborgerlaan+171,+BE-2020+Antwerpen&entry=gmail&source=g>
>>
>> <https://www.facebook.com/erpan.arkin>
>> <https://plus.google.com/+ErpanArkin>
>> <https://www.researchgate.net/profile/Y_Aierken>[image: linkedin logo]
>> <https://www.linkedin.com/in/krvajal/>[image: vcard logo]
>> <https://www.uantwerpen.be/vcard.aspx?emplid=13497&photo=true&logo=true&lang=EN>
>>
>> [image: CMT group, University of Antwerp]
>>
>> _______________________________________________
>> developers mailing list
>> developers at lists.quantum-espresso.org
>> https://lists.quantum-espresso.org/mailman/listinfo/developers
>>
>>
>
>
> --
> Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,
> Univ. Udine, via delle Scienze 208, 33100 Udine, Italy
> Phone +39-0432-558216 <+39%200432%20558216>, fax +39-0432-558222
> <+39%200432%20558222>
>
>
> _______________________________________________
> developers mailing list
> developers at lists.quantum-espresso.org
> https://lists.quantum-espresso.org/mailman/listinfo/developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/developers/attachments/20180314/8b431ac0/attachment-0001.html>
More information about the developers
mailing list