a2b_ord4
AGrid2BGridFourthOrder
Fortran name is a2b_ord4, test module is A2B_Ord4
__call__(qin, qout)
Converts qin from A-grid to B-grid in qout.
If initialized with replace=True, qin is also updated to the B grid.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
qin
|
inout
|
Input on A-grid (intent=in if replace=false) |
required |
qout
|
out
|
Output on B-grid |
required |
__init__(stencil_factory, quantity_factory, grid_data, grid_type, z_dim=Z_DIM, replace=False)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
stencil_factory
|
StencilFactory
|
creates gt4py stencils |
required |
grid_type
|
int
|
integer representing the type of grid |
required |
z_dim
|
defines whether vertical dimension is centered or staggered |
Z_DIM
|
|
replace
|
bool
|
boolean, update qin to the B grid as well |
False
|
a2b_interpolation(tmp_qout_edges, qout, qx, qy)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tmp_qout_edges
|
in
|
|
required |
qout
|
out
|
|
required |
qx
|
in
|
|
required |
qy
|
in
|
|
required |
doubly_periodic_a2b_ord4(qin)
Grid conversion is much simpler on a doubly-periodic, orthogonal grid so we can bypass most of the above code
ppm_volume_mean_x(qin, qx, dxa)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
qin
|
in
|
|
required |
qx
|
out
|
|
required |
dxa
|
in
|
|
required |
ppm_volume_mean_y(qin, qy, dya)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
qin
|
in
|
|
required |
qy
|
out
|
|
required |
dya
|
in
|
|
required |
qout_x_edge(qin, dxa, edge_w, qout, tmp_qout_edges)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
qin
|
in
|
|
required |
dxa
|
in
|
|
required |
edge_w
|
in
|
|
required |
qout
|
out
|
|
required |
tmp_qout_edges
|
out
|
|
required |
qout_y_edge(qin, dya, edge_s, qout, tmp_qout_edges)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
qin
|
in
|
|
required |
dya
|
in
|
|
required |
edge_s
|
in
|
|
required |
qout
|
out
|
|
required |
tmp_qout_edges
|
out
|
|
required |