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 |
Getting started with Fortran language
Introduction to programming with Fortran 95
This book goes beyond the basics to teach beginner- and intermediate-level Python programmers the little-known tools and constructs that build concise, maintainable code. Design better architecture and write easy-to-understand code using highly adoptable techniques that result in more robust and eff...
Essential JavaThis book written to provide clear and concise explanation of topics for programmers both starting to learn the Java 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....
Learning C#Download a complete tutorial on C # entitled "Learn C #", PDF document on 1027 pages created by StackOverFlow....
Csharp programmingDownload C# PDF Tutorial for free, it consisting of 29 chapters and 175 pages covering all the most important C# concepts. This tutorial is intended for beginner programmers, and we recommend you to go through all the chapters, to get the most out of it as possible....
Basic Programming ConceptsThe objectives of this tutorial are to introduce the fundamental concept of algorithm and the basic concepts of object-oriented programming, use the Java programming language, understand and apply good programming practices and evaluate your programmer skills....
Learning JavaJava is a class-based, object-oriented programming language that is designed to have as fe..., download free Java tutorial in PDF (1225 pages) created by ....
Free Algorithms eBookDownload free Algorithm tutorial course in PDF, training file in 65 chapters and 327 pages. Free unaffiliated ebook created from Stack OverFlow contributor....
Defensive Database Programming with SQL ServerDownload free course Defensive Database Programming with SQL Server, pdf file on 389 pages by Alex Kuznetsov....
Haskell Tutorial for C ProgrammersThis book is written to introduce Haskell for programmers of imperative languagues, including C, C++, Java, Python, and Pascal, etc....
Java Web Scraping HandbookDownload free course Java Web Scraping Handbook, pdf file on 115 pages by Kevin Sahin....