From e8d841fecd34bb9f852dbe10de1577625a468efd Mon Sep 17 00:00:00 2001 From: Jiwon Gim Date: Fri, 10 Jul 2026 15:22:44 -0600 Subject: [PATCH 1/2] inline --- include/mechanism_configuration/version.hpp | 10 +++++----- src/version.hpp.in | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/mechanism_configuration/version.hpp b/include/mechanism_configuration/version.hpp index a3e11ce6..42ea2578 100644 --- a/include/mechanism_configuration/version.hpp +++ b/include/mechanism_configuration/version.hpp @@ -11,23 +11,23 @@ namespace mechanism_configuration extern "C" { #endif - const char* getVersionString() + inline const char* getVersionString() { return "2.0.0"; } - unsigned getVersionMajor() + inline unsigned getVersionMajor() { return 2; } - unsigned getVersionMinor() + inline unsigned getVersionMinor() { return 0+0; } - unsigned getVersionPatch() + inline unsigned getVersionPatch() { return 0+0; } - unsigned getVersionTweak() + inline unsigned getVersionTweak() { return +0; } diff --git a/src/version.hpp.in b/src/version.hpp.in index 5b77108d..2a899b78 100644 --- a/src/version.hpp.in +++ b/src/version.hpp.in @@ -11,23 +11,23 @@ namespace mechanism_configuration extern "C" { #endif - const char* getVersionString() + inline const char* getVersionString() { return "@mechanism_configuration_VERSION@"; } - unsigned getVersionMajor() + inline unsigned getVersionMajor() { return @mechanism_configuration_VERSION_MAJOR@; } - unsigned getVersionMinor() + inline unsigned getVersionMinor() { return @mechanism_configuration_VERSION_MINOR@+0; } - unsigned getVersionPatch() + inline unsigned getVersionPatch() { return @mechanism_configuration_VERSION_PATCH@+0; } - unsigned getVersionTweak() + inline unsigned getVersionTweak() { return @mechanism_configuration_VERSION_TWEAK@+0; } From 9589b1632c0f6b9783fd1a3e538ed0ddccebe921 Mon Sep 17 00:00:00 2001 From: Jiwon Gim Date: Fri, 10 Jul 2026 16:31:11 -0600 Subject: [PATCH 2/2] Add solvent floor, and min half fields --- include/mechanism_configuration/types/aerosol.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mechanism_configuration/types/aerosol.hpp b/include/mechanism_configuration/types/aerosol.hpp index ee75878f..ee47f9e4 100644 --- a/include/mechanism_configuration/types/aerosol.hpp +++ b/include/mechanism_configuration/types/aerosol.hpp @@ -82,6 +82,8 @@ namespace mechanism_configuration::types std::vector products; /// @brief Rate constant per aerosol representation; keys are representation names. std::map rate_constants; + std::optional solvent_floor_; + std::optional min_halflife_; }; struct DissolvedReversibleReaction @@ -96,6 +98,7 @@ namespace mechanism_configuration::types std::map reverse_rate_constants; /// @brief Shared, intrinsic equilibrium constant (NOT per representation). std::optional equilibrium_constant; + std::optional solvent_floor_; }; struct HenryLawPhaseTransfer @@ -136,6 +139,7 @@ namespace mechanism_configuration::types std::vector reactants; std::vector products; ArrheniusReferenceTemperature equilibrium_constant; + std::optional solvent_floor_; }; struct LinearConstraintTerm