Skip to content

v26.10

Latest

Choose a tag to compare

@campuzanofj campuzanofj released this 29 Oct 22:30
· 8 commits to master since this release

ATTENTION: minor changes in bugs and features were added on the 21st of november 2026

This release contains binaries and libraries (DLLs) for the MOHID Water and MOHID Land code as found in the GitHub repository in October 2026. The binaries were compiled from Solutions\Hidromod_VS2022_OneAPI_2024.2 with Intel Fortran Compiler Classic (ifort) from oneAPI 2024.2, 64-bit, double precision (realKIND8). The release contains the source code used for compiling and the binaries with the following flavors:

64 bits double precision (x64): MOHID Water;
64 bits double precision OpenMP (x64_OpenMP): MOHID Water and MOHID Land;
64 bits double precision MPI (x64_MPI): MOHID Water and DomainConsolidation for Microsoft MPI.

The MPI executable is the solution configuration Release MPI|x64. It is compiled with _USE_MPI and linked to Microsoft MPI (msmpi.lib). It does not define _USE_INTEL_MPI. Microsoft MPI has to be installed on the machine that runs it; msmpi.dll is not inside the zip, as in v24.10. The OpenMP executable is Release OpenMP|x64 and carries the Intel OpenMP runtime (libiomp5md.dll).

Each binary zip is flat, as in v24.10: the renamed executable and the DLLs it loads. HDF5 comes from ExternalLibs\HDF5_1.8.17_x64. The serial executable also loads NetCDF 4.4.1.1. The Fortran runtime is the oneAPI 2024.2 pair libifcoremd.dll and libmmd.dll. The serial executable additionally imports libifcoremdd.dll, so that DLL is in MOHIDWater_v26.10_x64.zip as well.

= Release Notes =

== MOHID Water ==

New features:

  • Domain consolidation can share the work across several processes. One consolidated HDF5 file is still written by a single process. The values in that file are the same as in a one-process run. The MPI executable can also be started on its own, without mpiexec, and then uses one process. See the section below.

  • ASCII grid and bathymetry files are no longer stored line by line in the keyword buffer. The numeric blocks are read from the file when the grid is built. See the section below.

  • FIELD4D_MPI_WINDOW (default 0). With the keyword set to 1, each MPI rank reads only its own window of a Field4D file. Extrapolation is done on the union of those windows and the run stops if a cell of that union was read by no rank, or if two ranks read the same cell and disagree. EXTRAPOLATE_POINT cannot be used together with the window. The window communicator is created with MPI_Comm_create_group on an Intel MPI build and with MPI_Comm_create on the Microsoft MPI build shipped here. The default is off, so an existing data file keeps the previous behaviour.

  • INTERP_SCOPE chooses which cells a Field4D file fills: 1 the open boundary (3 layers in from each open face, plus one layer on U and V points), 2 the sponge (SPONGE_CELLS, default 10, with the same extra U/V layer), 3 the whole domain.

  • T90_VAR_METHOD : 13, in the water properties and in LagrangianGlobal. Below 40 W/m2 of surface solar radiation the T90 is the Bertrand MEAN formula (temperature only, the same formula as method 10). At 40 W/m2 and above, T90 in hours is 3887.2 divided by the radiation, and the value returned to the model is in seconds. Added for RivagesProtech, 31 July 2026.

  • Filtration can use a different minimum water-column height in each box. Inside <<begin_filtrationrate>> / <<end_filtrationrate>>:

    H_MIN_TO_FILTER              : one threshold for the whole domain (fill value means no depth limit)
    H_MIN_TO_FILTER_FILENAME     : a MOHID boxes file
    H_MIN_TO_FILTER_BOXES_VALUES : one real per box, in box-number order
    

    Cells that belong to no box keep a very low threshold, so filtration stays active there. Decay and reinitialization can also run in dry cells, and a minimum water column can be required before filtration is active.

  • HDF_CYCLIC_MONTHS. The HDF5 file must contain 12 instants, one per month, and instant 1 is January.

  • OUTPUT_CORNERS_3D (default false). The 3D cell corners are written to the hydrodynamic HDF5 only when this keyword is true.

  • LW_EXTINCTION_COEF now defaults to 0.333 m-1 (previously 2.9 m-1), so a strong stratification is less likely to keep a persistent two-grid-cell noise. The value still has to be calibrated.

  • Time-series tools: a low-pass and a high-pass filter by FFT, the maximum value inside a moving window, and a consistent fill value on instants that an input series does not cover.

  • Sponge coefficients for U and V are imposed the same way in 2D and in 3D, including the upper boundary. Cells that the sponge interpolation does not cover receive the default value.

  • Hydrodynamics. The 2D step, the astronomical tide potential, and the velocity update were tightened. One matrix used by the tide potential was initialized in a way that became very expensive as the number of MPI ranks grew; that initialization was corrected. Reading of HDF5 fields used by assimilation was also reduced to the data each rank needs.

  • Tide Gauges on an MPI Interior Border: When the open boundary is imposed from a tidal harmonics file, every boundary cell of a sub-domain used to become a gauge, including MPI interior border faces shared with a neighbour that write their own water level; computing a tide for them was wrong and stopped the run (ERR190, ERR200, ERR210), but this release does not create the gauge, leaving the list empty if all boundary cells are interior borders so ConstructGauges proceeds without stopping at ERR120 while reporting how many interior borders are not gauges. (fixed at 21/11/2026)

Corrected bugs:

  • U and V sponge coefficients on the upper boundary.
  • Cells outside the sponge interpolation were left unset; they now take the default value.
  • Sediment time-series output under domain decomposition.
  • Assimilation no longer treats cells that only exist for the father open boundary as cells to interpolate.
  • A domain-decomposition matrix used by the tide potential, which dominated the run time with many ranks.
  • 3D Field4D Interpolation Vertical Position: The vertical position used to interpolate a 3D Field4D file was incorrectly the upper SZZ face, but it has now been corrected to be the cell centre, halfway between the two SZZ faces (fixed at 21/11/2026).

=== Reading an ASCII grid ===

Nothing changes in the grid file. The same blocks and the same numbers are read. What changes is that the numeric blocks are not copied into the keyword buffer.

ConstructEnterData still opens the file and stores the lines that hold keywords (ILB, IUB, FILL_VALUE, TYPE_ZUV, and the rest). A new optional argument, SkipGridBlocks, tells it to drop the numeric blocks on that first pass. ModuleGridData and ModuleHorizontalGrid call it with SkipGridBlocks = .true.. Every other caller leaves the argument out, so time series and ordinary input files are stored exactly as before.

The blocks that are skipped are recognised by their tags, after tabs are turned into spaces and an ! comment is removed:

<BeginXX> ... <EndXX>
<BeginYY> ... <EndYY>
<CornersXY> ... </CornersXY>
<CartCornersXY> ... </CartCornersXY>
<BeginGridData2D> ... <EndGridData2D>
<BeginGridData3D> ... <EndGridData3D>
<BeginBathymetry> ... <EndBathymetry>

A bathymetry of several million lines used to allocate one buffer entry per line. Each entry had the compile-time keyword length: 1024 characters on the Release and Release MPI builds of this solution (_LONG_LINE_LENGTH), and 6144 characters on the Release OpenMP build (_BIG_LINE_LENGTH). The buffer is now only the keyword header. The numbers are read later, one line at a time, into a 256-character line (grid_ascii_line). A grid line longer than 256 characters stops the run and reports the file and the line number. A keyword line is still allowed to use the longer compile-time length.

When the grid is constructed, the file is opened again and scanned until the begin tag. ReadAsciiGridReals then returns the numbers of the next non-empty line, or reports the matching end tag. Commas and spaces both separate values, and an ! comment is ignored. The layouts already accepted by MOHID are unchanged.

For a 2D grid data or bathymetry block:

  • a line of i j value is a single cell;
  • a line of one value is the next cell in index order, i from ILB to IUB and j from JLB to JUB.

If <BeginGridData2D> is missing, the reader still accepts the old <BeginBathymetry> block. A 3D block accepts i j k value, i j value (the same value on every layer), or one value per cell in index order. A 3D grid may also be filled from a 2D block, in which case each horizontal cell is copied to every layer.

Under MPI each rank still reads the whole ASCII file. It stores a cell only when that cell falls inside its halo. StoreGridCell keeps global index i when HaloMap%ILB <= i <= HaloMap%IUB+1, and the same test on j, and converts that index to the local array. Cells outside the halo are discarded. A serial run stores i and j directly. The memory that used to hold every bathymetry line on every rank is not allocated. The file format, the keywords, and the values written into the grid array are the same.

The horizontal grid uses the same reader for <CornersXY>, <BeginYY>, <BeginXX>, and <CartCornersXY>. Corner lines have two reals. XX and YY lines have one.

FIELD4D_MPI_WINDOW is a separate switch. It does not change this ASCII reader. It only limits which part of a Field4D HDF5 file each rank reads.

=== Domain consolidation ===

DomainConsolidation.exe joins the HDF5 results of an MPI run of MOHID Water. Run it from the directory that holds Tree.dat (or tree.dat), after the model has finished. The tool reads that file. A line that starts with + and contains : names one model directory and the number of sub-domains. Nothing else in the input changes.

In each of those directories the model has written MPI_0_DecomposedFiles.dat, MPI_1_DecomposedFiles.dat, and so on, and the decomposed results named MPI_<rank>_<file>. The consolidated name is <file> in the same directory. MPI_0_Hydrodynamic_1.hdf5 and MPI_1_Hydrodynamic_1.hdf5 both become Hydrodynamic_1.hdf5.

The join itself is the same as before. Each decomposed file still fills the window stored inside that file. What changes is which process does the writing, and when the output file is created.

The tool makes two passes over the lists.

The first pass does not create any consolidated file. Every process reads the same DecomposedFiles lists and the domain stored in each HDF5. It groups the pieces that belong to one output and adds up their sizes, in bytes. All processes therefore hold the same list.

The processes then share that list out. The largest file is given first, always to the process that so far has the fewest bytes to read. The same rule is applied to the next file, until the list is empty. Every process computes this assignment on its own, from the same sizes, so they agree. One output file has one owner. Two processes never write the same file. A process that receives no file does no HDF5 work.

The second pass is the writing. Only the owner opens the decomposed pieces, creates the consolidated HDF5, and writes it. The file is created at that moment, not during the first pass.

Rank 0 prints the plan: how many files, how many processes, and, when there is more than one process, how many files and how many megabytes of input each rank will read. Each owner then prints the path it writes. With one process the path is printed without a rank number.

At the end the processes wait for one another. The elapsed time is the time of the slowest rank. Only rank 0 prints the termination banner.

Two ways to run the executable shipped in MOHIDWater_v26.10_x64_MPI.zip, both from the directory of Tree.dat. Microsoft MPI has to be installed: this build loads msmpi.dll.

Without mpiexec. This is the previous command. The program calls MPI_INIT, receives one process, and that process owns every file:

DomainConsolidation.exe

It prints Consolidating N files using 1 process(es). The same result is obtained with mpiexec -np 1 DomainConsolidation.exe.

With mpiexec. The number of processes is independent of the number used by MOHID Water. It only splits the list of consolidated files:

mpiexec -np 4 DomainConsolidation.exe

Use no more processes than consolidated files. Further ranks stay idle. A large hydrodynamic file and a small surface file can run at the same time, because they are different outputs.

A build without _USE_MPI (project configuration Release|x64) also starts with DomainConsolidation.exe and does not load msmpi.dll.

That executable is not in the serial MOHID Water zip.

== MOHID Land ==

New features:

  • Performance: On average about 2.5× faster (varying by setup against the MOHID master version).

    • 2D overland flow (ModuleRunOff): Calculations now cover only the area where water can be, using an active-cell window that grows and shrinks as cells wet and dry. Dry areas cost almost nothing.
    • Less parallel overhead: Loops were merged so threads are forked and joined less often.
    • Cheaper arithmetic: Constant Manning terms are precomputed once and x**2 became x*x. Results are bit-identical.
    • Faster time-step calculation: The Courant check only scans the active area.
    • Basin: Separate code paths for regular and irregular grids; precipitation splitting and SCS curve-number runoff are parallelised.
    • Faster start-up on large grids: A buffered terrain reader roughly halves model construction time on million-cell grids.
    • Smaller output files: Single-precision output is now the default (OUTPUT_SINGLEPRECISION).
    • Compiler: Builds with Intel oneAPI ifx and faster floating-point comparison settings.
  • Larger time steps: The time step now accounts for flow velocity as well as wave celerity (previously celerity only). MAX_COURANT can therefore be set higher without losing stability.
    To get the full benefit, set:

    • HYDRODYNAMIC_APROX : 3
    • LIMIT_DT_COURANT : 1
    • ADJUST_SLOPE : 0 (default)
    • A constant-spacing grid: COORD_TIP : 5, CONSTANT_SPACING_X : 1, CONSTANT_SPACING_Y : 1
  • Time-step synchronisation: SYNC_DT_FACTOR (default 10) controls how the time step is subdivided when SYNC_DT is on.

  • Face outputs: WRITE_FLUXES_AT_FACES writes fluxes and velocities at cell faces.

  • Cumulative flow volume: WRITE_COMULATIVE_FLOW_VOLUME writes the cumulative flow volume through each face.

  • Single-precision outputs: OUTPUT_SINGLEPRECISION (default on).

  • Validation: Results were checked against the previous version on a set of benchmark models, including the UK Environment Agency Test 8A benchmark with and without rain.

Corrected bugs:

  • Water balance: Volume error accounting, cumulative flow volume, total inflow volume, and total discharge flow.

  • Coupling: Open points were not updated when other modules changed the water column; drainage network + porous media coupling fixed.

  • Stability: The STABILIZE option, a race condition in the stability check, and several OpenMP initialisation and access-violation bugs.

  • Boundaries and grid:

    • Corner cells with boundary method 1
    • Grid angles below machine precision
    • DX/DY inconsistency on regular grids
    • Wrong DXX when grid coordinates are not used
  • Hydrology:

    • Wrong default for ADJUST_SLOPE
    • SCS curve number taking a default value after the input field was released
    • Centre velocity when the water column is negative
  • Build and monitoring:

    • MOHID Water and MOHID River now link against the ifx-built base libraries
    • The MPI build compiles
    • Turning on performance monitoring no longer stops the run
    • Negative atmospheric values are still caught when a random component is applied