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

Strip out tabs and end-of-line comments when reading from HEMCO_Config.rc -- Closes #150 #151

Merged
merged 1 commit into from
Jun 30, 2022

Conversation

yantosca
Copy link
Contributor

This PR should fix the issue raised in #150. We now strip out the following from each line read from HEMCO_Config.rc:

  1. Non-printing characters (e.g. TAB)
  2. End-of-line comments

Integration tests pending.

src/Core/hco_chartools_mod.F90
- Call string routine CSTRIP (with KeepSpaces=T).  This will remove any
  non-printing characters (but preserve spaces) from each line that is
  read in from HEMCO_Config.rc.
- Also check each line read from HEMCO_Config.rc for the position of
  the comment character.  If a comment character is found in column 1,
  do nothing (as this is a commment line).  But if a comment character
  is found elsewhere in the line, then ignore all characters at or after
  the position of the comment character.

This commit should fix the issue raised in geoschem/HEMCO #150.

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
@yantosca yantosca added the topic: Configuration Files Related to HEMCO configuration files label Jun 24, 2022
@yantosca yantosca added this to the 3.5.0 milestone Jun 24, 2022
@yantosca yantosca requested a review from msulprizio June 24, 2022 15:17
@yantosca yantosca self-assigned this Jun 24, 2022
@jimmielin
Copy link
Collaborator

Thanks so much for making this, it was a major source of debugging headaches 😟

Copy link
Contributor Author

No problem @jimmielin. We already had similar code in the GEOS-Chem Classic HISTORY code, so it was pretty easy to add this into HEMCO.

@yantosca
Copy link
Contributor Author

GCHP integration tests all passed:

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

Number of execution tests: 3
==============================================================================
 
Execution tests:
------------------------------------------------------------------------------
gchp_fullchem_benchmark_merra2_c48...............Execute Simulation.....PASS
gchp_fullchem_standard_merra2_c24................Execute Simulation.....PASS
gchp_TransportTracers_geosfp_c24.................Execute Simulation.....PASS
 
Summary of execution test results:
------------------------------------------------------------------------------
Execution tests passed:        3
Execution tests failed:        0
Execution tests not completed: 0

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

@yantosca
Copy link
Contributor Author

The GEOS-Chem Classic integration tests timed out (maybe due to issues on the cluster). I have resubmitted them and will post results when available.

@yantosca
Copy link
Contributor Author

GCC integration tests all passed

Summary of test results:
------------------------------------------------------------------------------
Execution tests passed: 48
Execution tests failed: 0
Execution tests not yet completed: 0

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: Configuration Files Related to HEMCO configuration files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants