15.02.2015 Views

Numerical Modelling in Fortran: day 2

Numerical Modelling in Fortran: day 2

Numerical Modelling in Fortran: day 2

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ead(*,*) and write(*,*)<br />

• read(*,*) and write(*,*) do the same th<strong>in</strong>g as<br />

read* and pr<strong>in</strong>t* but are more flexible:<br />

– The 1st * can be changed to a file number, to<br />

read or write from a file<br />

– The 2nd * can be used to specify the format<br />

(e.g., number of decimal places)<br />

• More about this later <strong>in</strong> the course!

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!