Fortran 77

  • #1
*FaerieLight*
43
0
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

Suggested for: Fortran 77

  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
2
Views
920
  • Last Post
Replies
12
Views
434
  • Last Post
Replies
8
Views
438
Replies
5
Views
279
  • Last Post
Replies
4
Views
436
  • Last Post
Replies
2
Views
330
  • Last Post
Replies
8
Views
936
  • Last Post
2
Replies
37
Views
2K
  • Last Post
Replies
4
Views
754
Top