ComIn 0.5.1
ICON Community Interface
Loading...
Searching...
No Matches
yac_example Namespace Reference

Function Documentation

◆ define_fields()

define_fields ( )

Definition at line 66 of file yac_example.py.

◆ process()

process ( )

Definition at line 105 of file yac_example.py.

◆ sec_ctr()

sec_ctr ( )

Definition at line 58 of file yac_example.py.

Constant Documentation

◆ cell_centers

cell_centers
Initial value:
1= grid.def_points(
2 Location.CELL,
3 vlon + 0.5 * (vlon[1] - vlon[0]),
4 vlat[:-1] + 0.5 * (vlat[1] - vlat[0]),
5 )

Definition at line 50 of file yac_example.py.

◆ connectivity

tuple connectivity
Initial value:
1= (np.asarray(domain.cells.vertex_blk) - 1) * glob.nproma + (
2 np.asarray(domain.cells.vertex_idx) - 1
3)

Definition at line 27 of file yac_example.py.

◆ domain

Definition at line 26 of file yac_example.py.

◆ glob

Definition at line 20 of file yac_example.py.

◆ grid

grid = Reg2dGrid("comin_example_grid", vlon, vlat, cyclic=(True, False))

Definition at line 49 of file yac_example.py.

◆ icon_cell_centers

icon_cell_centers
Initial value:
1= icon_grid.def_points(
2 Location.CELL,
3 np.ravel(domain.cells.clon)[: domain.cells.ncells],
4 np.ravel(domain.cells.clat)[: domain.cells.ncells],
5)

Definition at line 37 of file yac_example.py.

◆ icon_grid

icon_grid
Initial value:
1= UnstructuredGrid(
2 "comin_icon_grid",
3 np.ones(domain.cells.ncells) * 3,
4 np.array(np.ravel(np.transpose(domain.verts.vlon))[: domain.verts.nverts]),
5 np.array(np.ravel(np.transpose(domain.verts.vlat))[: domain.verts.nverts]),
6 np.ravel(np.swapaxes(connectivity, 0, 1))[: 3 * domain.cells.ncells],
7)

Definition at line 30 of file yac_example.py.

◆ rank

rank = comin.parallel_get_host_mpi_rank()

Definition at line 43 of file yac_example.py.

◆ source_comp

source_comp = yac.predef_comp("comin_example_source")

Definition at line 24 of file yac_example.py.

◆ target_comp

target_comp = yac.predef_comp("comin_example_target")

Definition at line 45 of file yac_example.py.

◆ vlat

vlat = np.linspace(np.pi / 2, -np.pi / 2, 180)

Definition at line 48 of file yac_example.py.

◆ vlon

vlon = np.linspace(-np.pi, np.pi, 360)

Definition at line 47 of file yac_example.py.

◆ yac

yac = YAC.from_id(glob.yac_instance_id)

Definition at line 23 of file yac_example.py.