Fortran77

Fortran77 - Fortran Tutorial Hsiu-Pin Chen September, 5 th...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Fortran Tutorial Hsiu-Pin Chen September, 5 th , 2007 MASC 575 - Basics of atomistic simulation of materials Concepts Program : to provide the computer a set of working instructions and make it perform certain tasks in a desired way. Programming language : Human-readable language that can be translated into machine- readable language through its own inherent compiler. Such as C, C++, Fortran. Programming Language They have fixed rules such as syntax and formats. These rules have to be followed exactly or the program will generate undesired results. They are necessary for communication between human and computer. Interface between human and computers Human can understand programming language, while computers can only understand machine codes. They are not cross-readable. Compiler does the translation job between two languages. Column position rules Col. 7 - 72 : codes. Col. 1 : comment symbol Col. 1 - 5 : statement label Col. 6 : continuation Case Insensitivity Fortran is case insensitive . " INTEGER " & " integer " won't be distinguished by the compiler. Program test Declarations of variables Input statements Calculation Output statements End Finally, save the file as filename .f Program structure Operators...
View Full Document

This note was uploaded on 10/21/2007 for the course MASC 575 taught by Professor Vashishta during the Fall '07 term at USC.

Page1 / 23

Fortran77 - Fortran Tutorial Hsiu-Pin Chen September, 5 th...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online