modelica / ModelicaStandardLibrary

Free (standard conforming) library to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
https://doc.modelica.org
BSD 3-Clause "New" or "Revised" License
452 stars 165 forks source link

Restore derivatives for one-sided extrapolation by constant continuation in case of 2D tables that actually degrade to 1D tables #4415

Closed beutlich closed 3 weeks ago

beutlich commented 4 weeks ago

Fix regression of e5f0e7eb5050456a8040d5a847adaab939cf866b (by #3896) as reported by https://github.com/modelica/ModelicaStandardLibrary/issues/4343#issuecomment-2144542893

For 2D-tables that actually degrade to 1D-tables the one-sided derivative in case of extrapolation by hold-last-point is zero.

Once merged, this needs to be back-ported to maint/4.1.x (and binaries rebuilt).