Top "Fortran" questions

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

deallocation and memory allocation problems in FORTRAN

I am having problems with the deallocate and allocate aspects of part of my FORTRAN code. in particular, i think …

memory-management fortran glibc double-free
Is There a Better Double-Precision Assignment in Fortran 90?

In Fortran 90 (using gfortran on Mac OS X) if I assign a value to a double-precision variable without explicitly tacking …

fortran fortran90
The reading list for scientific programmer

I am working to become a scientific programmer. I have enough background in Math and Stat but rather lacking on …

c++ c fortran scientific-computing
What is the correct way to initialize a parameter array in fortran?

This works just fine: program main integer,parameter,dimension(3) :: x = [1,2,3] print*,x end program main As does this: program main …

fortran fortran90
Test whether a directory exists or not

I'm trying to verify that a directory exists using Fortan90. On various sites I found: logical :: dir_e inquire(file=…

fortran fortran90 intel-fortran
Deep array copy in Fortran

I need a deep copy of a (real) array in Fortran (90), but am not sure exactly how to get one, …

arrays fortran fortran90
Fortran: How to read to an array from a file

I'm trying to read integers from a file to an array. But I get an error when I run the …

io fortran fortran90 fortran77 fortran95
Error: Nonnegative width required in format string at (1)

I'm trying to compile a piece of code with gfortran and it's failing with the following error: Error: Nonnegative width …

fortran gfortran
Write in an existing file without overwriting in Fortran

I have an existing file written by a Fortran program (formatted) and I would like to add few lines at …

fortran overwrite
Tips and tricks on improving Fortran code performance

As part of my Ph.D. research, I am working on development of numerical models of atmosphere and ocean circulation. …

performance fortran hpc