Skip to content

Updates to ERF Driver for Multi-Level AMR, Radiation, and Misc.#201

Merged
cenlinhe merged 39 commits intoNCAR:developfrom
erf-model:v5.1.0.dev
Nov 12, 2025
Merged

Updates to ERF Driver for Multi-Level AMR, Radiation, and Misc.#201
cenlinhe merged 39 commits intoNCAR:developfrom
erf-model:v5.1.0.dev

Conversation

@akashdhruv
Copy link
Copy Markdown
Contributor

@akashdhruv akashdhruv commented Jul 19, 2025

Summary

This PR introduces key enhancements to the ERF–Noah-MP coupled framework, including parallel I/O support, multi-level AMR capability, and coupling with the RRTMGP radiation model. The updates are mainly focussed on the driver side.


Key Updates

  • Parallel NetCDF Output
    Implemented scalable I/O routines that allow multiple MPI processes to write NetCDF output concurrently, improving efficiency for large-scale simulations (drivers/erf/NoahmpWriteLandMod.F90).

  • Multi-Level / Multi-Domain AMR Support
    Added support for multi-level adaptive mesh refinement (AMR) and nested domain configurations, enabling finer spatial resolution and more flexible simulation setups (drivers/erf/NoahmpIO_fi.F90).

  • RRTMGP–Noah-MP Coupling Interface
    Introduced an interface to couple the RRTMGP radiative transfer model with Noah-MP, allowing interactive exchange of surface energy fluxes and radiative variables (drivers/erf/NoahmpIO.cpp).

  • Exposed Wind Stress to ERF
    Updated (drivers/erf/EnergyVarOutTransferMod.F90) to expose wind stresses to ERF client.


Additional Notes

  • Updated build configuration to support new AMR and I/O options.
  • Verified compatibility with existing ERF runtime parameters and initialization routines.
  • Preliminary tests confirm correct parallel I/O behavior and consistent radiative–land coupling results.

@akashdhruv
Copy link
Copy Markdown
Contributor Author

@cenlinhe Some updates for multi-level AMR IO

@akashdhruv
Copy link
Copy Markdown
Contributor Author

Example plot from ERF simulation

mutli_level_amr

@akashdhruv akashdhruv changed the title IO updates for multi-level AMR. Updates to ERF Driver for Multi-Level AMR, Radiation, and Misc. Sep 17, 2025
@akashdhruv akashdhruv marked this pull request as draft October 14, 2025 16:30
@akashdhruv akashdhruv marked this pull request as ready for review October 14, 2025 17:56
@akashdhruv
Copy link
Copy Markdown
Contributor Author

@cenlinhe This PR is ready for review and merge whenever you are ready.

@akashdhruv
Copy link
Copy Markdown
Contributor Author

tall-towers-with-pressure-forcing.mp4

@cenlinhe cenlinhe requested review from cenlinhe and tslin2 October 24, 2025 18:20
@akashdhruv
Copy link
Copy Markdown
Contributor Author

Also adding a chat completion template to auto generate Fortran-C++ API for new variables using Gen AI models.

@cenlinhe
Copy link
Copy Markdown
Collaborator

cenlinhe commented Nov 6, 2025

@akashdhruv I saw you included a few additional commits last week. Did you finish all the code updates? If so, I will start to review this next week and likely merge it in the next 1-2 weeks to the main branch. Because we have a few other Noah-MP updates coming up, I would like to get your updates in first before I make additional Noah-MP updates.

@akashdhruv
Copy link
Copy Markdown
Contributor Author

@cenlinhe Yes I am done, just updating documentation. Please go ahead and merge this.

Copy link
Copy Markdown
Collaborator

@cenlinhe cenlinhe left a comment

Choose a reason for hiding this comment

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

this PR updates the NoahMP-ERF interface driver, which looks good. The code developer provided the successful test run results in this PR, which looks reasonable.

@cenlinhe
Copy link
Copy Markdown
Collaborator

@tslin2 Could you please take a look and approve this PR?

@cenlinhe cenlinhe merged commit d80917f into NCAR:develop Nov 12, 2025
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.

3 participants