Is it possible to include allocatable arrays in a module - I can find nothing about this in the language reference.
integer, ALLOCATABLE :: kzn(:)
real, ALLOCATABLE :: znx(:), zny(:)
END MODULE grid_cells
Then USE grid_cells in 3 scoping units, the arrays allocated in one of these.
eg. ALLOCATE( znx(max_grids), zny(max_grids), kzn(max_grids) )
The compiler does not like the above syntax. Is there some other way of doing it, or is there no way to include allocatable arrays in a module ?