科学模型中数值漂移的消除
The Removal of Numerical Drift from Scientific Models
摘要:
计算机程序在不同的编译器下或在不同的计算环境中通常表现不同。相对调试是分析这些差异的技术的集合。差异可能是因为对代码中错误的不同解释,因为编译器中的错误或因为数值漂移而产生的,所有这些都在本研究中观察到。当不同系统计算出的数值之间存在微小的可接受的差异时,数值漂移就会出现,结果就会漂移。这是很好理解的,不需要降低程序结果的有效性。编码错误和编译器错误可能会降低结果,应该删除。本文介绍了一种技术比较两个程序运行,消除数值漂移,从而暴露编码和编译器错误。该过程高度自动化,几乎不需要用户干预。该技术应用于天气研究和预报模型,这是最广泛使用的天气和气候建模代码。
英文摘要:
Computer programs often behave differently under different compilers or in different computing environments. Relative debugging is a collection of techniques by which these differences are analysed. Differences may arise because of different interpretations of errors in the code, because of bugs in the compilers or because of numerical drift, and all of these were observed in the present study. Numerical drift arises when small and acceptable differences in values computed by different systems are integrated, so that the results drift apart. This is well understood and need not degrade the validity of the program results. Coding errors and compiler bugs may degrade the results and should be removed. This paper describes a technique for the comparison of two program runs which removes numerical drift and therefore exposes coding and compiler errors. The procedure is highly automated and requires very little intervention by the user. The technique is applied to the Weather Research and Forecasting model, the most widely used weather and climate modelling code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。