-
Notifications
You must be signed in to change notification settings - Fork 14
Port merry-go-round testcase from compass #284
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
Conversation
|
||
|
||
def add_merry_go_round_tasks(component): | ||
resolution = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolution = 5 | |
resolution = 5. # Resolution provided in [units] |
Replace [units]
with m
or km
if not (vert_coord == 'z-level' or vert_coord == 'sigma'): | ||
raise ValueError('Vertical coordinate {vert_coord} not supported') | ||
|
||
lx, ly = (500, 5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be moved to the config file
|
||
lx, ly = (500, 5) | ||
nx, ny = compute_planar_hex_nx_ny(lx, ly, self.resolution) | ||
nz = int(50 / (self.resolution / 5)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be expressed in terms of a config parameter lz
# Initialize normalVelocity | ||
z_mid_edge = z_mid.isel(nCells=ds.cellsOnEdge - 1).mean("TWO") | ||
|
||
x_one_quarters = 0.75 * x_min + 0.25 * x_max |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x_one_quarters = 0.75 * x_min + 0.25 * x_max | |
x_one_quarters = x_min + 0.25 * (x_max - x_min) |
This is more intuitive to me
@andrewdnolan Looking great so far! Just a few minor suggestions |
Ports the
Default
testcase from themerry_go_round
testgroup fromcompass
,Checklist
api.md
) has any new or modified class, method and/or functions listedTesting
comment in the PR documents testing used to verify the changes