Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow up to 10 nested brackets in the HEMCO_Config.rc file #262

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

yantosca
Copy link
Contributor

Name and Institution (Required)

Name: Bob Yantosca
Institution: Harvard + GCST

Confirm you have reviewed the following documentation

Describe the update

In this PR, we have updated the MAXBRACKNEST parameter setting from 5 to 10 in the BracketCheck routine of src/Core/hco_config_mod.F90. This update is needed to account for additional nested brackets, because bracket conditions do not recognize the .and. operator.

Expected changes

This is a zero-diff update. It should allow HEMCO_Config.rc files with more than 5 nested brackets (such as we have in geoschem/geos-chem#2171) to be parsed without error.

Related Github Issue(s)

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 <yantosca@seas.harvard.edu>
@yantosca yantosca added topic: Configuration Files Related to HEMCO configuration files category: Bug Fix Fixes a bug that was previously reported labels Mar 12, 2024
@yantosca yantosca added this to the 3.8.1 milestone Mar 12, 2024
@yantosca yantosca self-assigned this Mar 12, 2024
@yantosca yantosca linked an issue Mar 12, 2024 that may be closed by this pull request
4 tasks
@yantosca
Copy link
Contributor Author

All GEOS-Chem Classic integration tests passed:

==============================================================================
GEOS-Chem Classic: Execution Test Results

GCClassic #e43be93 GEOS-Chem submod update: Merge PR #2178 (Rename "native" to "raw" )
GEOS-Chem #67220bb52 Merge PR #2178 (Rename "native" to "raw" in GCHP rundir scripts)
HEMCO     #7933a1b Increase allowed # of nested brackets from 5 to 10

Using 24 OpenMP threads
Number of execution tests: 26

Submitted as SLURM job: 23201447
==============================================================================
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%  All execution tests passed!  %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Also, all integration tests were zero-diff w/r/t 14.3.0, except:

  • APM (known parallelization issue)
  • RRTMG (numerical noise in RRTMG collection file)

@yantosca
Copy link
Contributor Author

All GCHP integration tests passed:

==============================================================================
GCHP: Execution Test Results

GCHP      #4bceb23 7GEOS-Chem submod update: Merge PR #2178 (Rename "native" to "raw" )
GEOS-Chem #67220bb52 Merge PR #2178 (Rename "native" to "raw" in GCHP rundir scripts)
HEMCO     #7933a1b Increase allowed # of nested brackets from 5 to 10

Number of execution tests: 6

Submitted as SLURM job: 23202467
==============================================================================
 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%  All execution tests passed!  %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Furthermore, all GCHP integration tests were zero-diff w/r/t 14.3.0

@yantosca yantosca requested a review from lizziel March 13, 2024 14:43
@yantosca yantosca marked this pull request as ready for review March 13, 2024 14:48
@yantosca yantosca merged commit e6feaec into dev/no-diff-to-benchmark Mar 13, 2024
1 check passed
@yantosca yantosca deleted the bugfix/increase-nested-brackets branch March 13, 2024 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Fix Fixes a bug that was previously reported topic: Configuration Files Related to HEMCO configuration files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Too many nested brackets" error in HEMCO 3.8.0
2 participants