Fortran 77

  • #1
Hi

I'm having some trouble with understanding the whole concept of the common block in Fortran 77.

Here is an example:

common /hmat/ a,b,c,d

It means that all the variables a,b,c,d are all contained in hmat. But does hmat need to be defined previously for the above example to make sense? Or can the first time you refer to it be in a common block code, as above? And if all the variables are stored in hmat, how do I open hmat to see them?

Thanks
 

Answers and Replies

Related Threads on Fortran 77

  • Last Post
Replies
7
Views
5K
Replies
8
Views
3K
  • Last Post
Replies
1
Views
4K
  • Last Post
Replies
2
Views
2K
Replies
29
Views
4K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
6
Views
5K
  • Last Post
Replies
2
Views
712
  • Last Post
Replies
4
Views
2K
Top