Download Free course and training document about Fortran 90, tutorial on 20 pages for beginners by Guy Munhoven.
Table of contents
Fortran 90 distinguishes the following program units (scoping units):
At first, we will not deal with modules or block data. It should be noted that the modules are among the most useful innovations of Fortran 90.
Main program
The main program has the following structure:
[PROGRAM [program name]]
specification and declaration instructions
executable instructions
[CONTAINS internal procedures]
END [PROGRAM [program name]]
Everything enclosed in square brackets ([...]) is optional (the brackets themselves are to be omitted in all cases). The PROGRAM statement is not mandatory, but the END statement. The latter can be completed by the PROGRAM attribute which must then be followed by the name of the program
name of the program. Different types of content (specification instructions
and declaration, executable instructions, etc.) are described below.
Subroutines
The subroutine subroutines have a structure similar to that of the main program:
SUBROUTINE name of the subroutine [(arguments)]
specification and declaration instructions
executable instructions
[CONTAINS internal procedures]
END [SUBROUTINE name of the subroutine]
The END statement is mandatory, but not the SUBROUTINE additional specification. If it is given, which is recommended, especially in the case where several subroutines are gathered in the same file, it must be
completed by the name of the subroutine, exactly as specified on the SUBROUTIN line.
Subroutines are run using the CALL command name of the subroutine [(arguments)]
functions
Function type subroutines return a result by calling them by name:
[type] FUNCTION function name ([argument list])
specification and declaration instructions
executable instructions
[CONTAINS internal procedures]
END [FUNCTION function name]
The type (see below) can be specified (recommended); otherwise, it is determined by the default typing rules (see below).
Size : | 134.745 Kb |
File type : | |
Downloads: | 169 |
Created: | 2018-05-21 |
Introduction to Programming using Fortran 95/2003/2008
Fortran 90/95 Programming Manual
Getting started with Fortran language
Download Arduino tutorial for beginners, 93-page PDF tutorial created by StackOverFlow....
Android Application Development for the Intel PlatformDownload free course Android Application Development for the Intel Platform, pdf file on 508 pages by by Ryan Cohen, Tao Wang....
Think Python, 2nd EditionIf you want to learn how to program, working with Python is an excellent way to start. Thi..., download free Python tutorial in PDF (292 pages) created by ....
Essential PythonThis book written to provide clear and concise explanation of topics for programmers both starting to learn the Python programming language as well as those diving in more complex topics. Most examples are linked to online playground that allows you to change the code and re-run it....
How To Think Like A Computer Scientist: C++ VersionThe goal of this book is to teach you to think like a computer scientist, using C++ as the programming language. ...
The Boost C++ LibrariesThis book is an introduction to the Boost C++ Libraries. The Boost C++ Libraries complement the C++ standard and add many practical tools that can be of use to any C++ developer and in any C++ project. Because the Boost C++ Libraries are based on the C++ standard, they are implemented using state-...
VB.NET programmingThis document provides an introduction to VB.NET programming language. You will learn the basics of the language with screenshots and examples....
DevOps: WTF?DevOps" is creating a lot of anxiety amongst the IT professionals of the world. It's also ..., download free DevOps tutorial in PDF (20 pages) created by ....
Java Web Scraping HandbookWeb scraping or crawling is the art of fetching data from a third party website by downloa..., download free Java tutorial in PDF (115 pages) created by Kevin Sahin ....
Fundamentals of C++ ProgrammingDownload free course Fundamentals of C++ Programming, pdf file on 766 pages by Richard L. Halterman....