Introduction to Fortran 90, Part II
Source Forms
Free Source Form
Free Source Form Cont’d
Source Form Examples
Parts of a Fortran Program
Program Header
Specification Part
Data
Parameterized Types
Why Parameterized Types?
Integer Type
Logical Type
Character Type
REAL Type
Complex Type
Integer Values
Integer Model
Integer Model Cont’d
Inquiries for Integer Model
Logical Values
Character Values
Real Values
Real Model
Real Model Cont’d
Inquiries for the Real Model
Complex Values
Operators and Operations
Operators Cont’d
Kinds of Intrinsic Types
Real Kind Numbers
User-Defined Types
Example of Derived Type
Access Components
Derived-Types Cont’d
Derived-Type Assignment
DT Assignment Cont’d
Constructing Derived-Type Values
Exercise
Exercise Cont’d
A “Real” Example Program
A “Real” Example Cont’d
Exceptional Cases
End Of The Program
Email: acpineda@arc.unm.edu
Home Page: http://www.arc.unm.edu/~acpineda/CS471.html