USGS ScienceSearch

USGS · 70045855

Parallelization of a hydrological model using the message passing interface

Abstract

With the increasing knowledge about the natural processes, hydrological models such as the Soil and Water Assessment Tool (SWAT) are becoming larger and more complex with increasing computation time. Additionally, other procedures such as model calibration, which may require thousands of model iterations, can increase running time and thus further reduce rapid modeling and analysis. Using the widely-applied SWAT as an example, this study demonstrates how to parallelize a serial hydrological model in a Windows® environment using a parallel programing technology—Message Passing Interface (MPI). With a case study, we derived the optimal values for the two parameters (the number of processes and the corresponding percentage of work to be distributed to the master process) of the parallel SWAT (P-SWAT) on an ordinary personal computer and a work station. Our study indicates that model execution time can be reduced by 42%–70% (or a speedup of 1.74–3.36) using multiple processes (two to five) with a proper task-distribution scheme (between the master and slave processes). Although the computation time cost becomes lower with an increasing number of processes (from two to five), this enhancement becomes less due to the accompanied increase in demand for message passing procedures between the master and all slave processes. Our case study demonstrates that the P-SWAT with a five-process run may reach the maximum speedup, and the performance can be quite stable (fairly independent of a project size). Overall, the P-SWAT can help reduce the computation time substantially for an individual model run, manual and automatic calibration procedures, and optimization of best management practices. In particular, the parallelization method we used and the scheme for deriving the optimal parameters in this study can be valuable and easily applied to other hydrological or environmental models.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Yiping Wu, Tiejian Li, Liqun Sun, Ji Chen. 2013. Parallelization of a hydrological model using the message passing interface. https://doi.org/10.1016/j.envsoft.2013.02.002

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related USGS reports

A catalogue of Do's and Don'ts in the modeling of environmental systems

Modeling plays a vital role in understanding and managing complex environmental systems, but its credibility and quality depend heavily on a comprehensive set of defensible model activities and practices, especially when the system of interest is plagued with uncertainties and conflicting stakeholder perspectives. This paper proposes a catalogue of Do's and Don'ts to guide modelers in addressing the many pertinent considerations through the whole modeling cycle. This practical tool provides advice on approaching modeling effectively through adhering to good modeling practice. It emphasizes model choices that align with the model purpose and context, and the justification and documentation of modeling decisions and assumptions. Managing uncertainty is a core consideration. The identification, assessment and reporting of these uncertainties is important across the entire modeling process, which spans problem framing, technical design, implementation and application phases. Such good practices are critical for transparency and reliability of the modeling.

Environmental Modelling and Software

Automating physics-based models to estimate thermoelectric-power water use

Thermoelectric (TE) power plants withdraw more water than any other sector of water use in the United States and consume water at rates that can be significant especially in water-stressed regions. Historical TE water-use data have been inconsistent, incomplete, or discrepant, resulting in an increased research focus on improving the accuracy and availability of TE water-use data using modeling approaches. This paper describes and benchmarks new code that was developed to automate and update a physics-based TE water use model that was previously published. Utilizing the automated physics-based model, monthly TE-power water withdrawal and consumption were calculated for a total of 1341 TE power plants for the 2008–2020 historical reanalysis. The updated and automated physics-based thermoelectric-power water-use model provides spatially and temporally relevant TE water-use estimates that are consistent, reproducible, transparent, and can be generated efficiently for water-using, utility-scale TE-power plants across conterminous United States (CONUS).

Environmental Modelling and Software

Transfer learning with convolutional neural networks for hydrological streamline delineation

Hydrological streamline delineation is critical for effective environmental management, influencing agriculture sustainability, river dynamics, watershed planning, and more. This study develops a novel approach to combining transfer learning with convolutional neural networks that capitalize on image-based pre-trained models to improve the accuracy and transferability of streamline delineation. We evaluate the performance of eleven image-based pre-trained models and a baseline model using datasets from Rowan County, North Carolina, and Covington River, Virginia in the USA. Our results demonstrate that when models are adapted to a new area, the fine-tuned ImageNet pre-trained model exhibits superior predictive accuracy, markedly higher than the models trained from scratch or those only fine-tuned on the same area. Moreover, the pre-trained model achieves better smoothness and connectivity between classified streamline channels. These findings underline the effectiveness of transfer learning in enhancing the delineation of hydrological streamlines across varied geographies, offering a scalable solution for accurate and efficient environmental modelling.

North Carolina, Virginia