Two questions:
1) In the main program data is read in plus claculations using many allocatable arrays. One of the arguments in subroutine A called is another subroutine B. B needs much of the info from the main program that A doesn't need. How can I get the info to B without passing it through A (which might also call C which doesn't need all the information B does)? Because of the allocatable arrays, I don't see how a module or common can be used.
2)I would prefer to put the reading in and most of the calculations into a subroutine. Would this change the answer to (1)?
1) In the main program data is read in plus claculations using many allocatable arrays. One of the arguments in subroutine A called is another subroutine B. B needs much of the info from the main program that A doesn't need. How can I get the info to B without passing it through A (which might also call C which doesn't need all the information B does)? Because of the allocatable arrays, I don't see how a module or common can be used.
2)I would prefer to put the reading in and most of the calculations into a subroutine. Would this change the answer to (1)?