Variable declaration

Hi everyone,

In the file discretelement.f, variables are declared using DOUBLE PRECISION or DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE. What are the differences between them?

image

I recommend this text for learning more about FORTRAN:

Here’s a set of course notes from a Cambridge class on modern Fortran, chapter 5 covers arrays and ALLOCATABLE

https://www-uxsup.csx.cam.ac.uk/courses/moved.Fortran/