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
This book contains many ready-to-use, focused recipes for high-performance scientific computing and data analysis, from the latest IPython/Jupyter features to the most advanced tricks, to help you write better and faster code. You will apply these state-of-the-art methods to various real-world examp...
Swift Programming TutorialDownload free Swift tutorial course in PDF, training file in 60 chapters and 291 pages. Free unaffiliated ebook created from Stack OverFlow contributor....
Introduction to C++ ,PointersHere you will learn how to get started with pointers in C++, how to access to the variables and memory, and how to use the pointers and arrays....
XML messaging with SOAPThis PDF tutorial gives a hands-on introduction to using the Simple Object Access Protocol (SOAP) for communication between components....
C++ Exercices with solutionsDownload free document in PDF about C++ language, exercices and solutions for beginners and intermediate level students....
Kotlin tutorial in PDFDownload free Kotlin tutorial course in PDF, training file in 38 chapters and 118 pages. Free unaffiliated ebook created from Stack OverFlow contributor....
C programming, C and C notesDownload PDF course about C Programming, free document in 134 pages for beginners students....
Python for You and MeDownload free course Python for You and Me, pdf file on 173 pages by Kushal Das....
Practical C++ programmingThis tutorial is devoted to practical C++ programming. It teaches you the mechanics of the language, free training document under 549 designated to all level users....
Think JavaDownload free course Think Java, pdf file on 374 pages by Allen Downey, Chris Mayfield....