Introduction to programming with Fortran 95

Introduction to programming with Fortran 95. This tutorial aim to provide an introduction to programming with Fortran 95. Fortran is particularly suitable for science and engineering.

Fortran is a programming language designed in the 1950s for scientific computing. It continues to be widely used in the field of scientific research for intensive computing. Unlike more advanced languages, the flow of individual machine operations remains relatively controllable in the language, which makes it possible to write codes that are relatively efficient in terms of calculation. Fortran has evolved a lot in recent years with the appearance of the Fortran 90 standard.

The recent norms (Fortran 95) are much richer but also much more difficult to understand than the Fortran 77 norm. We thus present here the fundamental bases of Fortran based mainly on Fortran 77 but using (implicitly or explicitly) some progress significant from the 90-95 standard.

 

Table of contents

  • The basics
  • Install Fortran 95
  • Your first program
  • A programming environment
  • Running your first Fortran 95 program
  • Program structure
  • Intrinsic Functions
  • Macking decision
  • Multiple conditions
  • Loops
  • Using files and extending decision
  • Arrays and formatted I/O
  • Subroutines and Functions
  • Advanced topics
  • Array Functions
  • Table extensions
  • Definitions (rank, profile, range, ...)
  • Manipulations of tables (conformance, constructor, section, size, ...)
  • Argument table of a procedure (size and profile implicit)
  • Non-contiguous array section as an argument to a procedure
  • Intrinsic functions tables
  • Query (maxloc, lbound, shape, ..)
  • Reduction (all, any, count, sum, ...)
  • Multiplication (matmul, dot_product, ...)

Functions on tables

COUNT: Returns the number of TRUE elements in the mask: count (A> 0.)
ALL (MASK): Returns TRUE if all the elements of the mask are true: ALL (A <10.)
ANY (MASK): Returns TRUE if at least one element of the mask is true: ALL (A = 1.)
MAXVAL (A, MASK): Returns the maximum value of A hidden.
MINVAL (A, MASK): Returns the minimum value of A hidden.
PRODUCT (A, MASK): Returns the product of the elements of masked A.
SUM (A, MASK): Returns the sum of the elements of A masked.
MERGE (A, B, MASK): Returns an array containing A where the mask is TRUE

Size : 420.993 Kb
File type : pdf
Downloads: 391
Created: 2018-05-21
Introduction to programming with Fortran 95

Others Fortran Tutorials

Beginner Fortran 90 tutorial

Introduction to Programming using Fortran 95/2003/2008

Fortran 90 for Beginners

Fortran 90/95 Programming Manual

Programming in Fortran 95

Others related eBooks about Introduction to programming with Fortran 95

The C Programming Language Handbook

Download free course The C Programming Language Handbook, pdf file on 78 pages by Flavio Copes....

Python 3 Patterns, Recipes and Idioms

This book is aimed at more experienced Python programmers who are looking to deepen their understanding of the language and modern programming idioms. Much of the material focuses on some of the more advanced techniques used by libraries, frameworks, and applications. ...

Python Tutorial for Beginners in PDF

In this tutorial, we will introduce you to the basic concepts of Python programming in an informal manner....

Essential C#

This book written to provide clear and concise explanation of topics for programmers both starting to learn the C# 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....

Programming in Fortran 95

Download Fortran 95 course, PDF tutorial for beginners to learn the basics of Fortran programming language....

Learn Pascal Programming Tutorial

A complete course on object programming in Pascal. In the first part, you learn how to use existing code written in object programming. Or, in other words, to use existing classes, especially those used to make the GUI of an application....

Evolve the Monolith to Microservices with Java and Node

Download free course Evolve the Monolith to Microservices with Java and Node, pdf file on 132 pages by Sandro De Santis, Luis Florez, Duy V Nguyen, Eduardo Rosa....

Agile Android Software Development

This book teaches you how to turn your ideas into successful apps that everyone will talk about, love, and share. With Agile tools and techniques, any developer can get a chunk of the Android pie! ...

Test-Driven Development with Python

By taking you through the development of a real web application from beginning to end, this hands-on guide demonstrates the practical advantages of test-driven development (TDD) with Python. You'll learn how to write and run tests before building each part of your app, and then develop the minimum a...

Get Started with MicroPython on Raspberry Pi Pico

Download free course Get Started with MicroPython on Raspberry Pi Pico, pdf file on 139 pages by Gareth Halfacree, Ben Everard....