From b06743343fe6aa3a6e89c23ae7a0b582674b3c7d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 17:11:14 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/python-jsonschema/check-jsonschema: 0.34.0 → 0.36.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.34.0...0.36.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5bb528c..5b36103 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: # - id: include-what-you-use - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.34.0 + rev: 0.36.0 hooks: - id: check-github-workflows - repo: meta From d2283bca4aaad8df57630f845d102fa7de86e19f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 17:11:25 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/DemandOptimization.cpp | 10 +++++----- src/Model.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/DemandOptimization.cpp b/src/DemandOptimization.cpp index 8bb574f..8a4e272 100644 --- a/src/DemandOptimization.cpp +++ b/src/DemandOptimization.cpp @@ -266,14 +266,14 @@ void CDemandOptimizer::SetWorkflowVariable (const string var_name, const dou ////////////////////////////////////////////////////////////////// /// \brief sets workflow variable /// \params var_code [in] - history value code - Q, I, h, or A -/// \params p [in] - global subbasin index -/// \params i [in] - history index +/// \params p [in] - global subbasin index +/// \params i [in] - history index /// \params val [in] - history value -/// \notes - called while parsing .rvc file; throws no warnings, only updates valid contents +/// \notes - called while parsing .rvc file; throws no warnings, only updates valid contents // void CDemandOptimizer::SetHistoryVariable (const char var_code, const int p, const int i, const double &val) { - if ((p<0) || (p>=_pModel->GetNumSubBasins())){return;} + if ((p<0) || (p>=_pModel->GetNumSubBasins())){return;} if ((i<0) || (i>=_nHistoryItems)){return;} if (_aSBIndices[p]==DOESNT_EXIST){return;} if (var_code=='Q'){_aQhist[_aSBIndices[p]][i]=val;} @@ -2697,7 +2697,7 @@ void CDemandOptimizer::WriteMajorOutput (ofstream &RVC) } for (int p=0;p<_pModel->GetNumSubBasins();p++){ if (_pModel->GetSubBasin(p)->IsEnabled()){ - RVC<<":BasinFlowHist "<< p<<","; + RVC<<":BasinFlowHist "<< p<<","; for(int i=0; i<_nHistoryItems;i++) { RVC<<_aQhist[_aSBIndices[p]][i]<<","; }RVC<GetSubBasin(p)->GetReservoir()!=NULL) { diff --git a/src/Model.h b/src/Model.h index c2c3073..a040b55 100644 --- a/src/Model.h +++ b/src/Model.h @@ -394,7 +394,7 @@ class CModel: public CModelABC void DestroyAllChannelXSections(); void CheckForChannelXSectsDuplicates(const optStruct &Options); void WriteRatingCurves(const optStruct& Options) const; - + // Convolution variables int GetNumConvolutionVariables() const; void IncrementConvolutionCount();