From 7933a1bb5692de8d475c7fa576d73b546d806869 Mon Sep 17 00:00:00 2001 From: Bob Yantosca Date: Tue, 12 Mar 2024 13:05:45 -0400 Subject: [PATCH] Increase allowed # of nested brackets from 5 to 10 src/Core/hco_config_mod.F90 - In routine "BracketCheck", changed the MAXBRACKNEST=5 setting to MAXBRACKNEST=10. This will allow up to 10 nested brackets in the HEMCO_Config.rc file. CHANGELOG.md - Updated accordingly Signed-off-by: Bob Yantosca --- CHANGELOG.md | 4 ++++ src/Core/hco_config_mod.F90 | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bb7df08..e8d0802d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] - TBD +### Changed +- Now allow up to 10 nested brackets (`((( )))`) in the `HEMCO_Config.rc` file + ## [3.8.0] - 2024-02-07 ### Changed - Updated TOMAS_Jeagle sea salt extension diff --git a/src/Core/hco_config_mod.F90 b/src/Core/hco_config_mod.F90 index 1dfca34a..f1b27372 100644 --- a/src/Core/hco_config_mod.F90 +++ b/src/Core/hco_config_mod.F90 @@ -1366,7 +1366,7 @@ SUBROUTINE BracketCheck( HcoConfig, STAT, LINE, SKIP, RC ) ! !LOCAL VARIABLES: ! ! Maximum number of nested brackets - INTEGER, PARAMETER :: MAXBRACKNEST = 5 + INTEGER, PARAMETER :: MAXBRACKNEST = 10 INTEGER :: IDX, STRLEN, ExtNr LOGICAL :: FOUND LOGICAL :: UseBracket, UseThis