KratosMultiphysics / Kratos

Kratos Multiphysics (A.K.A Kratos) is a framework for building parallel multi-disciplinary simulation software. Modularity, extensibility and HPC are the main objectives. Kratos has BSD license and is written in C++ with extensive Python interface.
https://kratosmultiphysics.github.io/Kratos/
Other
1.02k stars 244 forks source link

[Core] Fixed the calculation of the table's derivative outside its domain #12477

Closed avdg81 closed 3 months ago

avdg81 commented 3 months ago

📝 Description When the derivative of a table was requested at a point outside of the table's domain, it always returned 0. This was inconsistent with the behavior of member GetValue, which extrapolates using either the first line segment or the last line segment. The calculation of the table's derivative has been made consistent now. The change is covered by a unit test.

sunethwarna commented 3 months ago

Wow, you raced us ;) and made the test already :) [Check #12471]