How to apply hrdamp only to one specific boundary?

aroseman

Member
I am running CM1 (v20.3) with an idealized rectangular domain. My boundaries are periodic in y and radiative in x. I wish to use hrdamp only for the radiative x boundary, but not for the periodic y boundary.

For context, there is an anomalous thermal circulation that enters from the land side open boundary which hrdamp successfully removes, however it also prevents any movement through the periodic boundaries, which I don't want.

Is there a namelist option that will allow me only apply hrdamp to x boundaries?
 
Last edited:
I found this in /src/param.F. I'm guessing this is the place to set this.

! 170803: If you do not want/need the horizontal Rayleigh damper
! on certain sides of the domain, then set the
! appropriate variable below to .false.

hrdamp_west = .true.
hrdamp_east = .true.
hrdamp_south = .true.
hrdamp_north = .true.
 
You are correct; there is no namelist switch to apply horizontal Rayleigh damping by direction, but you can hard-code the side flags in the source, at the location you found. Sounds like you solved this on your own. Thanks for adding your solution to the forum.
 
Back
Top