Top "Fortran" questions

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

Debugging with gdb and gfortran - FPE's

I'm debugging a larger numerical program that I have added on to. It is written in fortran90, compiled with gfortran (…

gdb fortran fortran90 gfortran
How to increase array size on-the-fly in Fortran?

My program is running though 3D array, labelling 'clusters' that it finds and then doing some checks to see if …

arrays fortran fortran90 dynamic-arrays
Why Segmentation fault is happening in this openmp code?

main program: program main use omp_lib use my_module implicit none integer, parameter :: nmax = 202000 real(8) :: e_in(nmax) = 0.D0 …

fortran openmp
How to check if Fortran array contains value?

I've seen this asked for other languages, but having just found out how nicely Fortran can handle arrays, I thought …

arrays if-statement fortran where fortran90
Formatted output with leading zeros in Fortran

I have some decimal numbers that I need to write to a text file with leading zeros when appropriate. I've …

formatting fortran
Skip a line from text file in Fortran90

I'm writing in fortran (90). My program must read file1, do something with every line of it and write result to …

fortran fortran90
IEEE_UNDERFLOW_FLAG IEEE_DENORMAL in Fortran 77

I am new to Fortran and coding in general so I apologize if my terminology is not correct. I am …

fortran gfortran fortran77
Computing the cross product of two vectors in Fortran 90

I would like to compute the cross product of two vectors in Fortran 90. For example, in words, the cross product …

function fortran cross-product
Format string for output dependent on a variable

I would like to have a Fortran write statement formatted to depend on some variable. For example, I could write: …

formatting fortran fortran90 intel-fortran
How can I easily convert FORTRAN code to Python code (real code, not wrappers)

I have a numerical library in FORTRAN (I believe FORTRAN IV) and I want to convert it to Python code. …

python fortran code-translation