Fortran

Guide To Learn

New Fortran elements, at a glance

  • program/end program statements to define a main program
  • Intrinsic numeric types integerreal, and complex
  • dimension attribute to declare an array
  • Arithmetic operators +-*/, and **, and assignment =
  • if statement and if blocks for branching
  • stop statement to abort the program and print a message to the terminal
  • do/end do construct to iterate over any executable section of the code
  • do concurrent to mark embarrassingly parallel sections of the code
  • print * statement as the simplest way to print text and variable values to the terminal
New Fortran elements, at a glance

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top