Top "Fortran90" questions

The standardized successor to FORTRAN 77, released as an ISO standard in 1991 and an ANSI Standard in 1992.

How to initialize two-dimensional arrays in Fortran

In C you can easily initialize an array using the curly braces syntax, if I remember correctly: int* a = new …

arrays fortran fortran90 array-initialize
Fortran 90 - "Segmentation fault - invalid memory reference" with scalable 3D array

I have compiled a fortran 90 program with gfortran which builds a scalable 3D array in a way I want. Upon …

arrays segmentation-fault fortran fortran90 gfortran
What does "real*8" mean?

The manual of a program written in Fortran 90 says, "All real variables and parameters are specified in 64-bit precision (i.…

fortran precision bit fortran90
Fortran SAVE statement

I've read about the save statement in the (Intel's) language reference document, but I cannot quite grasp what it does. …

fortran fortran90
Single command to open a file or create it and the append data

I would like to know if in Fortran it is possible to use just a single command (with options/specifiers) …

fortran fortran90
How do you USE Fortran 90 module data

Let's say you have a Fortran 90 module containing lots of variables, functions and subroutines. In your USE statement, which convention …

module fortran conventions fortran90
Correct use of modules, subroutines and functions in Fortran

I've recently learnt about interface blocks when adding a function to my Fortran program. Everything works nice and neatly, but …

function module fortran fortran90 subroutine
Write data to file in columns (Fortran)

I need to write some data to file in Fortran 90. How should I use WRITE (*,*) input to have the values …

file-io formatting fortran fortran90
Function has no implicit type

I am trying to learn to work with functions. I have the following code: program main implicit none write(*,*) test(4) …

fortran fortran90
Function Returning an array in Fortran

It is my understanding that you can return an array from a function in Fortran, but for some reason my …

arrays function fortran fortran90