Host Association vs Use Association in Fortran
问题 Are there any "general rules" as to when one is preferable to the other? The context of this question is: I asked a different question regarding host association yesterday (link) and in the comments, I was advised to use host association with caution. The reason being that through host association, it is easy to inadvertently modify variables since the subroutines have unrestricted access to all variables that are declared in the module. To illustrate this, I will use the following code