Artigo Acesso aberto Revisado por pares

Object construction and destruction design patterns in Fortran 2003

2010; Elsevier BV; Volume: 1; Issue: 1 Linguagem: Inglês

10.1016/j.procs.2010.04.166

ISSN

1877-0509

Autores

Damian Rouson, Jim Xia, Xiaofeng Xu,

Tópico(s)

Modeling, Simulation, and Optimization

Resumo

This paper presents object-oriented design patterns in the context of object construction and destruction. The examples leverage the newly supported object-oriented features of Fortran 2003. We describe from the client perspective two patterns articulated by Gamma et al. [1]: abstract factory and factory method. We also describe from the implementation perspective one new pattern: the object pattern. We apply the Gamma et al. patterns to solve a partial differential equation, and we discuss applying the new pattern to a quantum vortex dynamics code. Finally, we address consequences and describe the use of the patterns in two open-source software projects: ForTrilinos and Morfeus.

Referência(s)