I have two questions about "modules":
1. For explicit procedure declaration(that is declaring a subroutine in a module), is it better to put every subroutine in a separate module, or putting more subroutines in a module won't cause any problem?
2. In the following code, subroutine Z has different functionalities in modules A and B(module A and B might be in different source files). How can I distinguish between them?
module A ... implicit none contains subroutine Z(x,y) ... end subroutine Z end module A module B ... implicit none contains subroutine Z(x,y) ... end subroutine Z end module B !!! Main program program check use A use B .... implicit none ... call Z(x,y) !!!! which Z???? ERROR