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

Remove InvMEGAN manual diagnostics from hcox_megan_mod.F90 #282

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

yantosca
Copy link
Contributor

Name and Institution (Required)

Name: Bob Yantosca
Institution: Harvard + GCST

Describe the update

This is the companion PR to issue #281 by @eamarais. We have now removed the calls to Diagn_Create that set up manual InvMEGAN diagnostics. These can be scheduled by adding the appropriate entries to HEMCO_Diagn.rc.

Expected changes

This is a zero-diff update. However, we expect to gain a performance benefit by not having to update the manual diagnostics on each HEMCO timestep.

Related Github Issue

This commit addresses the issue in geoschem/HEMCO #281.

src/Extensions/hcox_megan_mod.F90
- Removed the calls to Diagn_Create for InvMEGAN diagnostics.
  These can be activated by adding the proper entries to the
  HEMCO_Diagn.rc file.

CHANGELOG.md
- Updated accordingly

Signed-off-by: Bob Yantosca <[email protected]>
@yantosca yantosca added topic: HEMCO Extensions Pertaining to HEMCO extensions topic: Diagnostics Pertaining to HEMCO diagnostic outputs no-diff-to-benchmark This update will have no impact on benchmark simulations category: Bug Fix Fixes a bug that was previously reported labels Jul 12, 2024
@yantosca yantosca self-assigned this Jul 12, 2024
@yantosca
Copy link
Contributor Author

Integration tests are now in progress.

@yantosca
Copy link
Contributor Author

Integration tests are in progress.

@yantosca
Copy link
Contributor Author

All GEOS-Chem Classic integration tests passed:

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

GCClassic #8730985 GEOS-Chem submod update: Merge PR #2372 (Disable MEGAN in non-bmk sims)
GEOS-Chem #03287a67a Merge PR #2372 (Turn off MEGAN extension for non-benchmark sims)
HEMCO     #ebd4177 Remove InvMEGAN manual diagnostics from hcox_megan_mod.F90

Using 24 OpenMP threads
Number of execution tests: 28

Submitted as SLURM job: 39699970
==============================================================================

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

All tests were zero-diff w/r/t PR #2372, except:

  • TOMAS (parallelization error?)
  • APM (parallelization error?)

Also, differences were noted in the HEMCO diagnostics output for the following simulations:

  • fullchem_benchmark
  • tagCO

This is because the following variables are no longer included in the diagnostic output:

float InvMEGAN_AAXX(time, lat, lon) ;
float InvMEGAN_FAXX(time, lat, lon) ;
float InvMEGAN_MBOX(time, lat, lon) ;
float InvMEGAN_OSQT(time, lat, lon) ;
float InvMEGAN_BCAR(time, lat, lon) ;
float InvMEGAN_FARN(time, lat, lon) ;
float InvMEGAN_OMON(time, lat, lon) ;
float InvMEGAN_OCIM(time, lat, lon) ;
float InvMEGAN_CARE(time, lat, lon) ;
float InvMEGAN_MYRC(time, lat, lon) ;
float InvMEGAN_SABI(time, lat, lon) ;
float InvMEGAN_BPIN(time, lat, lon) ;
float InvMEGAN_APIN(time, lat, lon) ;
float InvMEGAN_ACET_DIRECT(time, lat, lon) ;
float InvMEGAN_ACET_MBOX(time, lat, lon) ;

@yantosca
Copy link
Contributor Author

All GCHP integration tests passed:

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

GCHP      #094f53b GEOS-Chem submod update: Merge PR #2372 (Disable MEGAN in non-bmk sims)
GEOS-Chem #03287a67a Merge PR #2372 (Turn off MEGAN extension for non-benchmark sims)
HEMCO     #

Number of execution tests: 11

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

Also, all tests were identical to PR #2372. Differences were noted in the Emissions collection file, but this is because the following diagnostics are no longer included:

float InvMEGAN_AAXX(time, lat, lon) ;
float InvMEGAN_FAXX(time, lat, lon) ;
float InvMEGAN_MBOX(time, lat, lon) ;
float InvMEGAN_OSQT(time, lat, lon) ;
float InvMEGAN_BCAR(time, lat, lon) ;
float InvMEGAN_FARN(time, lat, lon) ;
float InvMEGAN_OMON(time, lat, lon) ;
float InvMEGAN_OCIM(time, lat, lon) ;
float InvMEGAN_CARE(time, lat, lon) ;
float InvMEGAN_MYRC(time, lat, lon) ;
float InvMEGAN_SABI(time, lat, lon) ;
float InvMEGAN_BPIN(time, lat, lon) ;
float InvMEGAN_APIN(time, lat, lon) ;
float InvMEGAN_ACET_DIRECT(time, lat, lon) ;
float InvMEGAN_ACET_MBOX(time, lat, lon) ;

@yantosca yantosca requested a review from msulprizio July 15, 2024 15:00
@yantosca yantosca added this to the 3.9.2 milestone Jul 15, 2024
@yantosca yantosca marked this pull request as ready for review July 15, 2024 15:00
Copy link
Contributor

@msulprizio msulprizio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a straightforward pull request, simply removing the manual diagnostics code from the MEGAN extension. Looks good to merge.

@yantosca yantosca changed the base branch from main to dev/no-diff-to-benchmark July 16, 2024 14:22
@yantosca yantosca merged commit 40066bc into dev/no-diff-to-benchmark Jul 16, 2024
1 check was pending
@yantosca yantosca deleted the bugfix/remove-inv-megan-diag branch July 16, 2024 14:24
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 no-diff-to-benchmark This update will have no impact on benchmark simulations topic: Diagnostics Pertaining to HEMCO diagnostic outputs topic: HEMCO Extensions Pertaining to HEMCO extensions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Comment out manual InvMEGAN diagnostic creation code
2 participants