Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
5 Views

Common Block

    COMMON nrhs

 

In the code I am using there is the common statement in two subroutines -- I always thought that a common block had to have a name?

 

0 Kudos
1 Reply
Highlighted
Black Belt
5 Views

Nope - there is a thing

Nope - there is a thing called "blank COMMON" with slightly different semantics (you're allowed to have different lengths in different program units.) The more common (!) use of it in the past was for temporary variables where you didn't care if some other subroutine used the same memory.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos