Top "Fortran" questions

Fortran is a general-purpose, procedural, imperative programming language that is especially suited for numeric computation and scientific computing.

Why define PI = 4*ATAN(1.d0)

What is the motivation for defining PI as PI=4.D0*DATAN(1.D0) within Fortran 77 code? I understand how it works, …

fortran fortran77 pi
Fortran vs C++, does Fortran still hold any advantage in numerical analysis these days?

With the rapid development of C++ compilers,especially the intel ones, and the abilities of directly applying SIMD functions in …

c++ c cuda fortran
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
Why is fortran used for scientific computing?

I've read that Fortran is still heavily used for scientific computing. For code already heavily invested in Fortran this makes …

fortran
Getting fortran runtime error: end of file

I have recently learned how to work with basic files in Fortran and I assumed it was as simple as: …

runtime fortran gfortran
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
How does BLAS get such extreme performance?

Out of curiosity I decided to benchmark my own matrix multiplication function versus the BLAS implementation... I was to say …

c++ fortran
Fortran: the largest and the smallest integer

Fortran is completely new for me, can anybody help me to solve the follwing problem? I want to find out …

fortran fortran95