feat(EnginePartitioningTrigger): update trigger

Engine Partitioning trigger now properly throws on both increased convergence failures and a timestep collapse (timestep collapsing more than a factor of 1/100th the average value for the past 10 steps)
This commit is contained in:
2025-11-10 13:05:24 -05:00
parent 8be36b9ce0
commit 741a11d256
3 changed files with 17 additions and 17 deletions

View File

@@ -331,8 +331,7 @@ namespace gridfire::trigger::solver::CVODE {
*
* @param simulationTimeInterval Interval used by SimulationTimeTrigger (> 0).
* @param offDiagonalThreshold Off-diagonal Jacobian magnitude threshold (>= 0).
* @param timestepGrowthThreshold Threshold for timestep deviation (>= 0, and <= 1 when relative).
* @param timestepGrowthRelative Whether deviation is measured relatively.
* @param relativeTimestepCollapseThreshold Threshold for timestep deviation (>= 0, and <= 1 when relative).
* @param timestepGrowthWindowSize Window size for timestep averaging (>= 1 recommended).
* @return A unique_ptr to a composed Trigger<TimestepContext> implementing the policy above.
*
@@ -341,8 +340,7 @@ namespace gridfire::trigger::solver::CVODE {
std::unique_ptr<Trigger<gridfire::solver::CVODESolverStrategy::TimestepContext>> makeEnginePartitioningTrigger(
const double simulationTimeInterval,
const double offDiagonalThreshold,
const double timestepGrowthThreshold,
const bool timestepGrowthRelative,
const double relativeTimestepCollapseThreshold,
const size_t timestepGrowthWindowSize
);
}