Skip to content

Revert fixes to get debug mode working with UFSWM debug run#57

Merged
BrianCurtis-NOAA merged 1 commit into
NOAA-EMC:production/AQM.v7from
BrianCurtis-NOAA:bugfix/debug-revert
Feb 7, 2023
Merged

Revert fixes to get debug mode working with UFSWM debug run#57
BrianCurtis-NOAA merged 1 commit into
NOAA-EMC:production/AQM.v7from
BrianCurtis-NOAA:bugfix/debug-revert

Conversation

@BrianCurtis-NOAA
Copy link
Copy Markdown
Collaborator

@BrianCurtis-NOAA BrianCurtis-NOAA commented Jan 26, 2023

PR Checklist

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

    • RDHPCS (Brian, UFSWM ATMAQ RT).
    • WCOSS2 (Jianping, 30hr w/workflow).
  • 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 reverts an update made to get the model to run with the UFSWM in Debug mode. Those changes were causing an odd behavior with retro runs.

Issue(s) addressed

Dependencies

No Dependencies

@JianpingHuang-NOAA
Copy link
Copy Markdown
Contributor

@BrianCurtis-NOAA Do I need to redo a test?

@BrianCurtis-NOAA
Copy link
Copy Markdown
Collaborator Author

@BrianCurtis-NOAA Do I need to redo a test?

You tested this branch. Should not need to do another test.

Copy link
Copy Markdown
Contributor

@JianpingHuang-NOAA JianpingHuang-NOAA left a comment

Choose a reason for hiding this comment

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

I saw that both following sections were taken out to address division by zero issue now

IF (CONC( NO2_MAP,1 ) .NE. 0) THEN
                      DEPV_HNO3 = DEPVCR( V ) + PLDV_HONO / CONC( NO2_MAP,1 )
                  ELSE
                      DEPV_HNO3 = DEPVCR( V )
                  END IF
IF (CONC( NO2_MAP,1 ) .NE. 0) THEN
                      DEPV_HNO3 = DEPVCR( V ) + PLDV_HONO / CONC( NO2_MAP,1 )
                  ELSE
                      DEPV_HNO3 = DEPVCR( V )
                  END IF

@BrianCurtis-NOAA
Copy link
Copy Markdown
Collaborator Author

I saw that both following sections were taken out to address division by zero issue now

Yes, I will be addressing this in another PR.

Copy link
Copy Markdown
Contributor

@JianpingHuang-NOAA JianpingHuang-NOAA left a comment

Choose a reason for hiding this comment

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

Thanks !

@BrianCurtis-NOAA BrianCurtis-NOAA merged commit db3e48d into NOAA-EMC:production/AQM.v7 Feb 7, 2023
BrianCurtis-NOAA added a commit to BrianCurtis-NOAA/AQM that referenced this pull request Feb 9, 2023
BrianCurtis-NOAA added a commit to BrianCurtis-NOAA/AQM that referenced this pull request Mar 15, 2023
@BrianCurtis-NOAA BrianCurtis-NOAA deleted the bugfix/debug-revert branch March 22, 2023 12:53
AnnaSmoot-NOAA pushed a commit that referenced this pull request Mar 13, 2025
…USE (#106)

* Initial commit of rrfs_cmaq_canopy branch.

* Initial copy of canopy photolysis routines.

* Initial modifications to canopy photolysis CMAQ5.2.1 codes.

* Updated CMAQ makefiles for modified canopy codes.

* Added new canopy variables to AQM shared components.

* Added placeholder new canopy variables to aqm cap for fv3.

* Added conditional CANOPY_SHADE environment variable/logical.

* Updated conditional canopy_yn environment and logicals.

* Fixed bugs.

* Removed "RETURN" bug and added diagnostic prints.

* Removed debug prints and added canopy variables in DESC3.

* Fixed allocation/save bug.

* Update Makefile.in

* Added new canopy file to read for AQM.

* Updated example aqm.rc for canopy settings and file.

* Initial changes for reading canopy data in AQM.

* Updated aqm_emis_read and aqm.rc for canopy variables.

* Moved ASX_DATA_MOD to compile above Phot.F

* Updated to remove default ASX_DATA_MOD and phot.F

This reverts commit 1abdda0.

This reverts commit 43588af.

* initialize feature/pt-source

* Testing Sub-Canopy phot effects only.

* Enable CMAQ simplistic scavenging and wet removal in resolved clouds.

* Fix naming inconsistency for convective and nonconvective precipitation fields.

* Properly set compiler flags in GNU build system for fixed source form files.

* Remove leftover code in PT3D_DEFN

* Remove duplicate get-config in `aqm_methods`

* Remove 'AREA' case in `interpx` was added by Youhua but is not present in upstream

* Remove fenghsa `em%dens_flag` block upstream doesn't have it

Quick check of canopy inputs and photolysis attenuation factors.

* Update phot.F

Fixed bug on integrating though ZCAN=ZFL, and rolled back to FCH > 0.5 m canopy condition to be consistent with initial implementation.

* Revert fixes to get debug mode working with UFSWM debug run (#57)

* Restricted to FCH and LAI only to match CCPP physics.

* Fixed bug in IF statement for canopy conditions.

* update CMAQ respository

* update aqm_files.cmake with corresponding code changes in the local /model/src folder

* Update centralized_io_module.F

* Add files via upload un-commented all MAPS lines, and changed CMakeList.txt

* Update ASX_DATA_MOD.F

* Update o3totcol.f

* Update vdiffacmx.F

* Update aqm_files.cmake turn on according changed codes in local src/ folder

* Update .gitmodules point to CMAQ 5.4+

* Update RUNTIME_VARS.F

* Change aqm_files.cmake to use ROS3 solver

* Add rbdriver.F file to localCCTM folder. There is a typo in CMAQ's source file and therefore need to put it here

* Update PT3D_STKS_DEFN.F

* Fix issue with array trying to set data where water is

* Bring in changes from #103

* Fix debug runtime bug in PT3d_STKE_DEFN.f

---------

Co-authored-by: Patrick.C.Campbell@noaa.gov <Patrick.C.Campbell@m71a1.ncep.noaa.gov>
Co-authored-by: Patrick Campbell <dr.nimbusrain@gmail.com>
Co-authored-by: bbakernoaa <barry.baker@noaa.gov>
Co-authored-by: Youhua Tang <Youhua.Tang@noaa.gov>
Co-authored-by: Raffaele Montuoro <raffaele.montuoro@noaa.gov>
Co-authored-by: Zachary Moon <zmoon92@gmail.com>
Co-authored-by: Wei Li <liweicugb@gmail.com>
Co-authored-by: lwcugb <35088762+lwcugb@users.noreply.github.com>
Co-authored-by: Beiming Tang <51177339+btang1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

PM2.5 underprediction by the latest online-cmaq SRW workflow The latest workflow got strange O3 and PM2.5 predictions

3 participants