Skip to content

v4.3.0

Latest

Choose a tag to compare

@p-costa p-costa released this 20 Nov 16:38
· 2 commits to main since this release

Summary

This release adds a bulk forcing that balances the wall shear exactly, output periods in physical time, more robust checkpointing, a hipDecomp backend for AMD GPUs, a faster periodic Poisson solver, and prescribed halo widths.

  • hipDecomp: new decomposition backend for AMD GPUs, thanks to the work of @loostrum!
  • Bulk forcing: with is_bulk_forcing_wall_shear = T, the forced directions are driven by a pressure gradient that balances the wall shear exactly over each substage (zero net acceleration), which conserves the bulk velocity without the round-off error of a volume average; supported along any periodic direction, with explicit diffusion or implicit diffusion along z.
  • Poisson solver: with periodic boundary conditions along z and no implicit diffusion, the auxiliary solution of the periodic tridiagonal systems is computed once and reused. This led to a significant speed-up in z-periodic cases.
  • Checkpoints: checkpoints are written to temporary files and renamed once complete (except with the ADIOS2 backend), aliases are replaced atomically without spawning a shell, the rotating mode continues across restarts, and restarting from an inconsistent set of checkpoint files aborts.
  • Halo widths: the ghost layers of the velocity, pressure, and scalar fields have prescribed widths (nh_v, nh_p, and nh_s in param.f90, one layer by default), and the halo exchanges, boundary conditions, and I/O handle any width, so that extensions with wider stencils, e.g., immersed-boundary methods, need no changes to the core of the code. With the default widths, the results are unchanged.
  • Physical-time outputs: tout0d, tout1d, tout2d, tout3d and tsave set the output and checkpoint periods in physical time.
  • Run control: aborted runs exit with a non-zero status and do not overwrite the last checkpoint, and the wall-clock limit stops all tasks at the same time step.
  • Fixes and maintenance: z cell centres built from the cell faces, geometry.out and grid.out written with explicit formats, GPU selection of HIP builds with diezDecomp, cuDecomp update, the halo autotuning of cuDecomp with its own NCCL/NVSHMEM switches and the pencils of the halo exchanges, the location of the cuDecomp/hipDecomp libraries recorded in the executable (no LD_LIBRARY_PATH needed), portable GNU builds in CI, and the start/stop restart test in CI.

Input changes: none required; is_bulk_forcing_wall_shear, tout0d, tout1d, tout2d, tout3d and tsave are new optional entries of &dns.

Compatibility: custom output templates (out1d.h90, out2d.h90, out3d.h90) must pass the halo widths of the fields, as the default ones do.

What's Changed

  • Run control and failure handling by @p-costa in #266
  • Build the z cell centers from the faces of each cell by @p-costa in #267
  • Update cuDecomp to the latest main by @p-costa in #269
  • Write geometry.out and grid.out with explicit formats by @p-costa in #270
  • Portable GNU dependency builds in CI by @p-costa in #272
  • Add hipDecomp as decomposition backend by @loostrum in #265
  • Bump dependencies/hipDecomp from 77c7970 to e6ae3d2 by @dependabot[bot] in #275
  • Cache the periodic-z auxiliary solution of the Poisson solver by @p-costa in #273
  • Fix the device attribute of the DTDMA workspace by @p-costa in #276
  • Robust checkpoints and output aliases by @p-costa in #274
  • Physical-time output periods by @p-costa in #271
  • Zero-net-acceleration bulk forcing by @p-costa in #268
  • Import the HIP device functions for diezDecomp builds too by @p-costa in #278
  • Scale the round-off tolerance of the output times with the step count by @p-costa in #279
  • Run the start/stop restart test in CI by @p-costa in #280
  • Allow prescribed halo widths for the velocity, pressure, and scalars by @p-costa in #282
  • Note the CCE 19.0.0 OpenACC bug in the periodic DTDMA solver by @p-costa in #283
  • Record the location of the cuDecomp/hipDecomp libraries in the executable by @p-costa in #284
  • Poisson test: allow overriding the MPI launcher and timeout by @p-costa in #285
  • Fix the NCCL/NVSHMEM switches and the pencils of the halo autotuning by @p-costa in #287
  • Bump dependencies/hipDecomp from e6ae3d2 to 35cc110 by @dependabot[bot] in #289
  • Impose a prescribed normal velocity at the lower boundary on restart by @p-costa in #290
  • Set the automatic processor grid for one grid cell along a direction by @p-costa in #291

New Contributors

Full Changelog: v4.2.0...v4.3.0