Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Common Block

JohnNichols
Valued Contributor II
88 Views
    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
Steve_Lionel
Black Belt Retired Employee
88 Views

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.

Reply