[Q-e-developers] Rev13108

Martin Schlipf martin.schlipf at gmail.com
Thu Oct 13 16:27:10 CEST 2016


Dear Paolo,

I noticed the recent commit where you state that zero-length strings are
forbidden by the Fortran standard. This restriction has been removed from
the standard with Fortran90. Fortran2003 even allows for dynamically
allocated strings

CHARACTER(:), ALLOCATABLE :: string
string = ""
WRITE(*,*) LEN(string)  ! prints 0
string = "a"
WRITE(*,*) LEN(string)  ! prints 1

Best,
Martin

-- 
Martin Schlipf
Department of Materials
University of Oxford
Parks Road
Oxford OX1 3PH, UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/developers/attachments/20161013/9b5f0be6/attachment.html>


More information about the developers mailing list