Relative Content

Tag Archive for fortrangfortran

Is it possible (or even wise) to “encapsulate” constants from a module for use in a USE : ONLY statement?

Below is the framework of my module source. I know how to do a “use : only” to draw in functions and subroutines from it as needed. What I don’t know how to do is code the module so that I could draw in only the two constants at the top with a USE and ignore the functions and subroutines, should I wish to do so. Is there a source construct for doing this? (Using gfortran, if that makes a difference.)

Is it possible (or even wise) to “encapsulate” constants from a module for use in a USE : ONLY statement?

Below is the framework of my module source. I know how to do a “use : only” to draw in functions and subroutines from it as needed. What I don’t know how to do is code the module so that I could draw in only the two constants at the top with a USE and ignore the functions and subroutines, should I wish to do so. Is there a source construct for doing this? (Using gfortran, if that makes a difference.)

Is it possible (or even wise) to “encapsulate” constants from a module for use in a USE : ONLY statement?

Below is the framework of my module source. I know how to do a “use : only” to draw in functions and subroutines from it as needed. What I don’t know how to do is code the module so that I could draw in only the two constants at the top with a USE and ignore the functions and subroutines, should I wish to do so. Is there a source construct for doing this? (Using gfortran, if that makes a difference.)