[GRASS-git] [OSGeo/grass-addons] f71bf8: r.flexure: update for gFlex v2.0.0; add testsuite ...

Andy Wickert noreply at github.com
Sat Jun 13 05:40:22 PDT 2026


  Branch: refs/heads/grass8
  Home:   https://github.com/OSGeo/grass-addons
  Commit: f71bf825b940c29d462f47510c0f61f11fb2959a
      https://github.com/OSGeo/grass-addons/commit/f71bf825b940c29d462f47510c0f61f11fb2959a
  Author: Andy Wickert <andy at northernwidget.com>
  Date:   2026-06-13 (Sat, 13 Jun 2026)

  Changed paths:
    M src/raster/r.flexure/r.flexure.html
    M src/raster/r.flexure/r.flexure.md
    M src/raster/r.flexure/r.flexure.py
    A src/raster/r.flexure/testsuite/test_r_flexure.py

  Log Message:
  -----------
  r.flexure: update for gFlex v2.0.0; add testsuite (#1744)

* r.flexure: update for gFlex v2.0.0; add testsuite

Full update to be compatible with gFlex >= 2.0.0:
- Rename API attributes to snake_case (Te→T_e, BC_N→bc_north, etc.)
- Remove iterative solver and PlateSolutionType (gone in v2)
- Read flex.w before finalize() (v2 deletes it on finalize)
- Replace per-side padding flag with per-side 'infinite' BC option
  ('infinite' is a native gFlex alias for no_outside_loads)
- Add FFT spectral solver as a method option
- Add in-plane stress parameters (sigma_xx, sigma_yy, sigma_xy)
- Lowercase method option values (fd, fft, sas)
- Default te_units to km (optional); reorder required inputs first
- Suppress cmcrameri import warning; map GRASS verbosity to gFlex logging
- Rewrite HTML docs: BC descriptions with physical context, EXAMPLES section
- Add gunittest testsuite with BC, solver, and interface tests

Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>

* r.flexure docs: link to gFlex ReadTheDocs

Replace GitHub link with https://gflex.readthedocs.io/ as the primary
gFlex documentation reference in both the DESCRIPTION gFlex link and
the installation-instructions line.

Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>

* r.flexure: rename grass.script alias grass→gs (ICN001) and fix alignment

Rename `import grass.script as grass` to `import grass.script as gs`
and update all call sites — required by the grass-addons ruff linter
(ICN001). Also remove redundant alignment spaces on flex.bc_west and
flex.bc_east assignments (E221).

Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>

* r.flexure docs: fix 3e7 → 30000000.0 in r.mapcalc example

r.mapcalc does not accept scientific notation (3e7); use an explicit
decimal literal instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>

* r.flexure tests: rename grass.script alias grass→gs (ICN001) and fix blank line

Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>

* r.flexure docs: regenerate r.flexure.md from updated HTML

Brings the Markdown copy in sync with the rewritten HTML: RTD link,
gFlex >= 2.0.0 requirement, revised NOTES with all six BC descriptions,
examples section (sigmoid-Te volcanic load), corrected 2016 GMD reference.

Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>

* r.flexure tests: replace try/finally with addCleanup (PLW0717)

Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>

* r.flexure: apply ruff format (style only)

Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>

* r.flexure docs: rewrite .md with 80-char wrap and fenced code blocks (MD013, MD033)

Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass-addons/settings/notifications


More information about the grass-commit mailing list