The Hydrological Model Continuum (HMC) is a distributed hydrological model developed by the CIMA Research Foundation.
It is operationally used by the Italian Civil Protection Department (DPC) and international partners.
HMC is the computational core of the Flood-PROOFS modelling system, designed to support:
- flood forecasting and nowcasting
- hydrogeological risk prevention
- water resource management
- environmental and climate simulations
The system is operational in:
- Italy
- Bolivia
- Albania
- Lebanon
- Current version:
v3.4.2 - Release date:
2026-04-09
👉 See CHANGELOG.md
- Distributed hydrological simulation
- Routing modes (v3.4.0):
- Grid (
iFlagRoutingType = 1) - Indexed (
iFlagRoutingType = 2)
- Grid (
- Surface and subsurface flow
- Snow model and energy balance
- Soil moisture and groundwater dynamics
- Channel network and convolution schemes
- NetCDF input/output support
- High-performance Fortran implementation
- Modified Horton infiltration method
- Runoff routing
- Subsurface flow routing
- Energy balance (Force-Restore equation)
- Deep soil temperature filter (Tdeep)
- Water table and deep flow routing
- Snow model and corrections
- Soil moisture correction
- Groundwater fracturation
- Linux (Debian/Ubuntu recommended)
- 64-bit architecture
- Fortran 2008+ (GFortran ≥ 8 recommended)
- NetCDF4
- HDF5
- Zlib
git clone https://github.com/c-hydro/fp-env
cd fp-env
bash setup_fp_env_system.sh
source $HOME/fp_libs_system/fp_env_system./configure.sh hmc-dev $HOME/fp_libs_system $HOME/fp_libs_system/hmc true./configure.shRecommended settings:
- Compiler: GNU/GFortran
- Optimization: Production
- NetCDF: enabled
- Profiling: disabled
Executable will be created in:
$HOME/fp_libs_system/hmc/Example:
HMC_Model_V3_Exec.xHMC uses a simplified interface:
HMC.x {domain}.info.txt./HMC_Model_V3_Exec.x po.info_run_et.txtRUN=Profile ./configure.sh./HMC_Tools_Profiler.sh HMC_Model_V3_Profile.x domain.info.txthmc_model_analysis.txthmc_model_analysis.png
./HMC_Tools_Memory.sh HMC_Model_V3_Exec.x domain.info.txtvalgrind --tool=callgrind ./HMC_Model_V3_Exec.x domain.info.txt{domain}.info.txt(namelist configuration)- NetCDF forcing datasets
- Static maps (DEM, soil, vegetation, etc.)
- NetCDF datasets
- Time series
- Diagnostic variables
- VS Code
- NetBeans
- Code::Blocks
- gdb
- valgrind
- gprof
GitHub Actions automatically:
- builds HMC
- checks compilation
- produces executable artifacts
Workflow:
.github/workflows/build.yml
- Fork repository
- Clone with submodules
git clone --recursive
- Create a feature branch
- Add code and tests
- Submit a Pull Request
See 👉 AUTHORS.md
Licensed under the European Union Public Licence (EUPL v1.2)
👉 See LICENSE.rst
If you use HMC:
Delogu, F., Gabellani, S., Silvestro, F., Libertino, A., Ercolani, G. (2026)
Hydrological Model Continuum (HMC) v3.4.0
CIMA Research Foundation
@software{hmc_v340,
title = {Hydrological Model Continuum (HMC)},
version = {3.4.0},
author = {
Delogu, Fabio and
Gabellani, Simone and
Silvestro, Francesco and
Libertino, Andrea and
Ercolani, Giulia
},
year = {2026},
publisher = {CIMA Research Foundation},
url = {https://github.com/c-hydro/hmc-dev}
}👉 Machine-readable citation: CITATION.cff
- https://www.cimafoundation.org/
- https://github.com/c-hydro/hmc-dev
- https://github.com/c-hydro/fp-env
- https://fortran-lang.org/
Hydrology · Hydrological Model · Flood Forecasting · Fortran · NetCDF · HPC · Environmental Modeling
Hydrological Model Continuum — Scientific Modeling for Water Systems
