MODULE initialization subroutine?


Can I tell a module to run a local initialization routine at startup time of the program? This would allow me to arrange some complicated settings that will be of general use when my program runs and USES the module.



Hi Arjan,

Fortran 95 doesn’t have a C++ sytle constructor but you can use data intialization statement in your modules. Hopefully this will give you the functionality that you need.

  • Mat