Skip to content

Add ww3_bounc preprocessing for regional-grid boundary conditions#18

Draft
manishvenu wants to merge 3 commits into
ESCOMP:mainfrom
CROCODILE-CESM:add-ww3-bounc-preprocessing
Draft

Add ww3_bounc preprocessing for regional-grid boundary conditions#18
manishvenu wants to merge 3 commits into
ESCOMP:mainfrom
CROCODILE-CESM:add-ww3-bounc-preprocessing

Conversation

@manishvenu

@manishvenu manishvenu commented Jul 14, 2026

Copy link
Copy Markdown

Summary

  • Adds ww3_bounc preprocessing to cime_config/buildnml, mirroring the existing ww3_grid prestaging pattern, to build nest.ww3 (boundary condition forcing) for regional/nested WW3 grids.
  • Adds a new case variable WW3_NEST (mirrors WW3_MODDEF): 'unset' builds nest.ww3 fresh from ww3_bounc + staged boundary-condition inputs (ww3_bounc.nml, spectra files); set to a path to stage a pre-built nest.ww3 instead.

Changes

  1. I moved the creation of the moddef create folder outside the grid statement and copied the input dir files to it and the executables
  2. So the check if WW3_MODDEF and WWS_NEST are now very small functions that should call the executable if they are unset.

This is a draft, opening for early feedback on the approach before finalizing.

… grids

Mirrors the existing ww3_grid prestaging pattern: builds nest.ww3 from
ww3_bounc and boundary-condition input files when WW3_NEST is 'unset',
or stages a pre-built nest.ww3 when WW3_NEST points to an existing file.
Supports any combination of fresh/pre-built grid and fresh/pre-built nest.
Points at CROCODILE-CESM/WW3 branch add-ww3-bounc-executable (ESCOMP/WW3#41,
pending upstream merge), which adds ww3_bounc as a standalone CMake
executable so the ww3_bounc preprocessing added here has something to run.
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.

1 participant