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

Upgrade CMAQ from 5.2 to 5.4, Use correct variable for LUFRAC_ and DLUSE #106

Open
wants to merge 117 commits into
base: develop
Choose a base branch
from

Conversation

BrianCurtis-NOAA
Copy link
Collaborator

@BrianCurtis-NOAA BrianCurtis-NOAA commented Feb 27, 2025

PR Checklist

  • This PR has been tested on an RDHPCS machine and/or WCOSS2. Please select below:

    • RDHPCS.
    • WCOSS2.
  • This PR has been tested with the ufs-srweather-app workflow online-cmaq branch.

  • New or updated input data is required by this PR.

  • Baselines are expected to change.

Description

This PR brings in the CMAQ version 5.4 replacing 5.2.1

Issue(s) addressed

Dependencies

Patrick.C.Campbell@noaa.gov and others added 30 commits February 10, 2022 21:27
Fixed Makefile.in typo.
btang1 and others added 23 commits August 27, 2023 19:24
comment a 'end do', after that, code compiled successfully
turn on according changed codes in local src/ folder
point to CMAQ 5.4+
Forget to turn on AOD
Need to comment out two lines for writing to OUTDEV and LOGDEV in aqm_dev branch
Better handle of the emission unit. This will not impact the simulation results.
Resolve a bug in point source emission. Only the first layer emission is included with his bug, which leads to much lower SO2 simulations.
Fix a bug in point source emission
Comment on lines +184 to +186
!tstep( 1 ) = config % ctm_tstep ! TSTEP(1) = local output step
!tstep( 2 ) = tstep( 1 ) ! TSTEP(2) = sciproc sync. step (chem)
!test different tstep(1) and tstep(2)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If we're not using this, can this be removed?

@@ -107,7 +119,8 @@ subroutine cmaq_init(rc)
! -- Set up horizontal domain and calculate processor-to-subdomain maps for
! -- process analysis, if required
IF ( LIPR .OR. LIRR ) THEN
IF (aqm_rc_test( .NOT. PAGRD_INIT( NPROCS, MYPE ), &
! IF (aqm_rc_test( .NOT. PAGRD_INIT( NPROCS, MYPE ), &
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

can we remove this?

@@ -13,7 +13,8 @@ module AQM
implicit none

! -- import fields
integer, parameter :: importFieldCount = 36
integer, parameter :: importFieldCount = 37
! integer, parameter :: importFieldCount = 45 !with canopy
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

double checking that we're saving this for later canopy changes?

Comment on lines +258 to +260
#${localCCTM}/AERO_EMIS.F
#${localCCTM}/PTMAP.F
#${localCCTM}/PT3D_DATA_MOD.F
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can we remove these, since we are no longer editing these files locally?

Comment on lines +61 to +62
write( logdev,* ) ' NT number of tracer is: ', nt
write( logdev,* ) ' p_aqm_beg/ndiag is:', config % species %p_aqm_beg,'/',config % species % ndiag
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm typically wary of adding verbosity to logs (because they can get overly verbose quickly). Is there any method to supress these unless we specifically want to see these? It doesn't seem to add more than 2 lines, so I wanted to double check if this is indeed something to be kept?

Comment on lines +129 to +132
if (aqm_rc_check(localrc, msg="Failed to initialize concentrations", &
file=__FILE__, line=__LINE__, rc=rc)) return
first_step = .false.
if (config % verbose) call cmaq_conc_log(trim(config % name) // ": init")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The indent looks off, should fix.


REAL, ALLOCATABLE, SAVE :: DD_FAC ( : ) ! combined subexpression
REAL, ALLOCATABLE, SAVE :: DDBF ( : ) ! secondary DDEP
REAL, ALLOCATABLE, SAVE :: CMPF ( : ) ! intermediate CMP
REAl, ALLOCATABLE, SAVE :: CMPF ( : ) ! intermediate CMP
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

typo

@BrianCurtis-NOAA
Copy link
Collaborator Author

@bbakernoaa If you get some time to address these, i can take some time to implement anything that we think should be updated.

!tstep( 1 ) = config % ctm_tstep ! TSTEP(1) = local output step
!tstep( 2 ) = tstep( 1 ) ! TSTEP(2) = sciproc sync. step (chem)
!test different tstep(1) and tstep(2)
tstep( 1 ) = 1 * 10000 ! TSTEP(1) = local output step

Choose a reason for hiding this comment

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

@bbakernoaa Just curious if there is a reason why this was written as = 1 * 10000 instead of = 10000

C IF ( AQM_RC_CHECK( LOCALRC,
C & MSG="Failure while reading PNCOM emissions from" //
C & TRIM( ETYPE ) // " emissions",
C & FILE=__FILE__, LINE=__LINE__ ) ) RETURN

Choose a reason for hiding this comment

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

Is this code commented out? Is there a reason to keep it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SLTYP incorrectly assigned to land use or vtype Updating AQM to CMAQv5.4
9 participants