首页    期刊浏览 2024年11月23日 星期六
登录注册

文章基本信息

  • 标题:Dynamic Memory De-allocation in Fortran 95/2003 Derived Type Calculus
  • 本地全文:下载
  • 作者:Damian W.I. Rouson ; Karla Morris ; Xiaofeng Xu
  • 期刊名称:Scientific Programming
  • 印刷版ISSN:1058-9244
  • 出版年度:2005
  • 卷号:13
  • 期号:3
  • 页码:189-203
  • DOI:10.1155/2005/702048
  • 出版社:Hindawi Publishing Corporation
  • 摘要:

    Abstract data types developed for computational science and engineering are frequently modeled after physical objects whose state variables must satisfy governing differential equations. Generalizing the associated algebraic and differential operators to operate on the abstract data types facilitates high-level program constructs that mimic standard mathematical notation. For non-trivial expressions, multiple object instantiations must occur to hold intermediate results during the expression's evaluation. When the dimension of each object's state space is not specified at compile-time, the programmer becomes responsible for dynamically allocating and de-allocating memory for each instantiation. With the advent of allocatable components in Fortran 2003 derived types, the potential exists for these intermediate results to occupy a substantial fraction of a program's footprint in memory. This issue becomes particularly acute at the highest levels of abstraction where coarse-grained data structures predominate. This paper proposes a set of rules for de-allocating memory that has been dynamically allocated for intermediate results in derived type calculus, while distinguishing that memory from more persistent objects. The new rules are applied to the design of a polymorphic time integrator for integrating evolution equations governing dynamical systems. Associated issues of efficiency and design robustness are discussed.

国家哲学社会科学文献中心版权所有