This page is for discussing design patterns in relation to Fortran.
Some popular design patterns implemented in Fortran (Abstract Factory, Builder, Factory Method, Prototype, Singleton, Adapter, Bridge, Composite, Criteria, Decorator) can be found here.
The singleton pattern is used to ensure that a class has only one instance, and to provide a global point of access to it. Arjen Markus has noted that Fortran’s modules are, by definition, an implementation of the singleton pattern.