Loading…
Performance improvements to modern hydrological models via lookup table optimizations
Distributed hydrological models predict the spatial variability in processes that govern observed mass and energy fluxes. A challenge associated with the use of these models is the computational burden associated with representing the Earth's (sub)surface via millions of computational elements....
Saved in:
Published in: | Environmental modelling & software : with environment data news 2021-05, Vol.139, p.105018, Article 105018 |
---|---|
Main Authors: | , , , |
Format: | Article |
Language: | English |
Subjects: | |
Citations: | Items that this one cites Items that cite this one |
Online Access: | Get full text |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Summary: | Distributed hydrological models predict the spatial variability in processes that govern observed mass and energy fluxes. A challenge associated with the use of these models is the computational burden associated with representing the Earth's (sub)surface via millions of computational elements. This burden is exacerbated as more complex process representations are included because their parameterizations involve computationally intensive mathematical functions. Lookup tables (LUTs) approximate a mathematical function by interpolating precomputed values of the function. Highly accurate approximations are possible for substantially reduced computational costs. In this work, a general methodology using the C++ LUT library FunC is applied to identify and replace computationally intensive mathematical function evaluations in the Canadian Hydrological Model (CHM). The use of LUTs introduces a pointwise relative error below 10−8 and provides a reduction in run time of almost 20%. This work shows how LUTs can be implemented with relatively little pain and yield significant computational savings for distributed hydrological models.
•The Canadian Hydrological Model (CHM) is profiled and expensive mathematical functions identified.•FunC was used to replace the expensive mathematical functions in CHM with lookup tables.•The run-time performance of CHM was improved by approximately 20% on two realistic simulations.•A general methodology for using FunC to replace expensive mathematical functions with lookup tables is given. |
---|---|
ISSN: | 1364-8152 1873-6726 |
DOI: | 10.1016/j.envsoft.2021.105018 |