• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2012, Vol. 34 ›› Issue (6): 65-69.

• 论文 • Previous Articles     Next Articles

Memory Optimization of the Adjoint Model of the GRAPES Regional Model

LI Jincai,ZHAO Wentao,ZHAO Jun   

  1. (School of Computer Science,National University of Defense Technology,Changsha 410073,China)
  • Received:2010-12-31 Revised:2011-03-28 Online:2012-06-25 Published:2012-06-25

Abstract:

The adjoint model of the GRAPES regional model has been developed with a combination of automatic differentiation tool TAPENADE and handcoding. The model is made up of mode programs and a memory supporting library (PLP library). The TAPENADE employs a complete storage strategy to save the intermediate variables. This causes too much memory overhead during the operation of the adjoint mode and increases memory consumption with the time step going on. The growing of memory is addressed by modifying the POP functions in the PLP. The mode programs are optimized for integer variables, real variables and calling subroutines of the forward model so that the memory overhead is significantly decreased.

Key words: numerical weather forecast, GRAPES, adjoint model;memory optimization;TAPENADE