Numerical Modelling in Fortran: day 2
Numerical Modelling in Fortran: day 2
Numerical Modelling in Fortran: day 2
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Character/str<strong>in</strong>g def<strong>in</strong>itions<br />
• character :: a<br />
(s<strong>in</strong>gle character)<br />
• character(len=10) :: a (str<strong>in</strong>g of length 10)<br />
• character :: a*10, b*5<br />
• character*15:: a,b<br />
(fortran77 style)<br />
• character(len=*) :: Name=‘Paul’<br />
– automatic length, otherwise str<strong>in</strong>gs will be<br />
truncated or padded with spaces to fit declared<br />
length