Repository navigation
Synchronize WRF-CFBM restarts and update atmospheric forcing interpolation - #2446
Merged
Merged
Conversation
Restrict roughness, temperature, humidity, surface pressure, accumulated rain, and 10 m wind interpolation to valid WRF mass cells. Retain MPI halo cells inside the physical domain and preserve fire-grid tile bounds. Pass WRF domain bounds to the updated CFBM wind interface. Enforce coupled restart ownership and report contradictory restart settings. AI assistance: OpenAI Codex assisted with implementation and code review. Co-authored-by: Pedro A. Jimenez <jimenez@ucar.edu> Co-authored-by: Maria Frediani <frediani@ucar.edu>
Keep source memory bounds separate from inclusive physical mass-grid bounds when interpolating surface forcing and winds onto the fire grid. Let the shared CFBM interpolators exclude outer storage while retaining valid exchanged MPI neighbors. Pin OptionalExternals_cfbm.cfg and the fire_behavior submodule to CFBM 1bab409a46dff9839fc482f8ec6f4fbbcaf9e653, which provides the updated horizontal interface, shared vertical wind calculation, and 1 m default fire wind height. Validation: focused serial and OpenMP interpolation tests passed after the guard cleanup. Before that cleanup, this shared-domain caller passed 60-second serial, four-rank MPI, and four-rank/four-thread runs, with all eight checked forcing fields finite across 90 fire outputs. Offline before/after checks matched exactly in four configurations.
Update OptionalExternals_cfbm.cfg and the fire_behavior submodule pointer to f456cd5f00ce1ea42e28486f6d970599e3626272, the merged CFBM PR wrf-model#71 commit on develop. The merged source tree is identical to the previously pinned PR revision 1bab409a46dff9839fc482f8ec6f4fbbcaf9e653; this changes only the references.
dudhia
approved these changes
Nov 19, 2026
dudhia
left a comment
Collaborator
There was a problem hiding this comment.
need to make sure hash is updated as we don't use manage externals in WRF now. I think it is.
smileMchen
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Synchronize WRF-CFBM restarts and update atmospheric forcing interpolation
TYPE: enhancement
KEYWORDS: WRF, CFBM, restart, coupling, interpolation, winds, MPI
SOURCE: Masih Eghdami, Pedro Jimenez, Maria Frediani. OpenAI Codex assisted.
DESCRIPTION OF CHANGES:
Problem:
WRF-CFBM runs need restart capability for long simulations.
Horizontal interpolation also needs to distinguish physical source-domain bounds from array memory bounds. Using memory bounds alone can include invalid outer boundary storage when interpolating winds, temperature, moisture forcing, and surface roughness. Interpolating three-dimensional winds near MPI patch edges additionally requires current neighboring wind and height profiles.
Solution:
restart_interval = -1innamelist.cfbmto disable independent CFBM checkpoint scheduling. Reject a CFBM-only restart request when WRF is not restarting. CFBM continues to read and write its own fire checkpoint files.ids:ide-1,jds:jde-1) to the CFBM horizontal interpolation routines. Apply this interface to surface roughness, temperature, humidity, pressure, precipitation, and winds. This excludes invalid outer storage while retaining exchanged MPI halos within the physical domain.hinterp_optargument. The merged CFBM implementation supports nearest-neighbor and bilinear horizontal interpolation and uses the sharedCalc_fire_windroutine for vertical interpolation.u_phy,v_phy, andz_at_wbefore interpolating three-dimensional winds, including the first step after restarting. - Pin both the CFBM submodule and optional-external configuration to merged CFBM commitf456cd5f00ce1ea42e28486f6d970599e3626272. This includes the changes in NCAR/fire_behavior#71. The dependency defaults towind_vinterp_opt = 0(three-dimensional winds) andfire_wind_height = 1.0m; explicit namelist settings override these defaults.ISSUE:
Related to NCAR/fire_behavior#71, now merged. No separate WRF issue is linked.
LIST OF MODIFIED FILES:
TESTS CONDUCTED:
Validation was conducted on Derecho.
Four offline configurations covering both horizontal interpolation and wind-source options produced 152 exact before/after saved-field comparisons. Native WRF-CFBM runs completed in serial, four-rank MPI, and four-rank/four-thread MPI/OpenMP configurations. Across 90 fire output files, no missing or nonfinite values were found in the eight checked forcing fields (
uf,vf,fz0,zsf,fire_t2,fire_q2,fire_psfc, andfire_rain). These runs used GNU 12.4 and Cray MPICH 8.1.29.RELEASE NOTE:
WRF-CFBM runs now have synchronized restart capability. Atmospheric forcing interpolation uses explicit physical source-domain bounds, and three-dimensional wind profiles are exchanged across MPI patch boundaries before interpolation.