Skip to content

Allow negative bulk and tank reaction orders in EN_setoption - #933

Merged
LRossman merged 1 commit into
OpenWaterAnalytics:devfrom
aowis-org:fix-negative-reaction-orders
Aug 25, 2026
Merged

LRossman merged 1 commit into
OpenWaterAnalytics:devfrom
aowis-org:fix-negative-reaction-orders

Conversation

@aowis-becker

Copy link
Copy Markdown

EN_setoption() currently rejects all negative option values before
handling the individual option type. This prevents setting negative
EN_BULKORDER and EN_TANKORDER values through the Toolkit API.

Negative bulk and tank reaction orders are already accepted by the INP
parser and supported by the quality solver as Michaelis-Menten kinetics.

This change allows negative values for EN_BULKORDER and EN_TANKORDER
while preserving the existing validation for other options, including
EN_WALLORDER.

A regression test verifies that negative bulk and tank orders can be set
and retrieved through the Toolkit and used successfully in a quality
analysis.

@LRossman
LRossman merged commit 1afbdb9 into OpenWaterAnalytics:dev Aug 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants