YAC 3.13.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_interface Namespace Reference

Variables

 rank = MPI.COMM_WORLD.rank
 
 size = MPI.COMM_WORLD.size
 
 yac_def_instance = yac.YAC(default_instance=True)
 
 yac_def_instance2 = yac.YAC.default_instance
 
 yac_from_id = yac.YAC.from_id(yac_def_instance2.instance_id)
 
 yac_comm = yac.YAC(comm=MPI.COMM_WORLD)
 
 yac_instance = yac.YAC()
 
 comp1 = yac_instance.predef_comp("comp1")
 
 comp2 = yac_instance.def_comp("comp2")
 
 comp3
 
 x = np.array([-1., 0., 1.])
 
 write
 
 grid1 = yac.Reg2dGrid("grid1", x, x)
 
 points1 = grid1.def_points(yac.Location.CELL, [-0.5, 0.5], [-0.5, 0.5])
 
 grid2
 
 mask1 = grid2.def_mask(yac.Location.CELL, [True], name="mask1")
 
 points2 = grid2.def_points(yac.Location.CELL, [0.5], [0.5])
 
 grid3
 
 grid4
 
 points4
 
 grid5
 
 points5 = grid5.def_points(yac.Location.CELL, [0.5], [0.5])
 
 grid6
 
 grid7 = yac.Reg2dGrid("grid7", x, x, north_pole = [3.6, 0.7])
 
 points7 = grid1.def_points(yac.Location.CELL, [-0.5, 0.5], [-0.5, 0.5])
 
 field1 = yac.Field.create("field1", comp1, points1, 3, "1", yac.TimeUnit.MINUTE)
 
 field2
 
 field3
 
 field4
 
 interp = yac.InterpolationStack()
 
 src_lag
 
 yaxt_exchanger_name
 
 collection_selection
 
 interp_yaml
 
 interp_json
 
 field1_id = yac_instance.get_field_id("comp1", "grid1", "field1")
 
 data
 
 send_info
 
 recv_info
 

Variable Documentation

◆ collection_selection

test_interface.collection_selection

Definition at line 181 of file test_interface.py.

◆ comp1

test_interface.comp1 = yac_instance.predef_comp("comp1")

Definition at line 50 of file test_interface.py.

◆ comp2

test_interface.comp2 = yac_instance.def_comp("comp2")

Definition at line 51 of file test_interface.py.

◆ comp3

test_interface.comp3

Definition at line 53 of file test_interface.py.

◆ data

test_interface.data

Definition at line 259 of file test_interface.py.

◆ field1

test_interface.field1 = yac.Field.create("field1", comp1, points1, 3, "1", yac.TimeUnit.MINUTE)

Definition at line 136 of file test_interface.py.

◆ field1_id

test_interface.field1_id = yac_instance.get_field_id("comp1", "grid1", "field1")

Definition at line 234 of file test_interface.py.

◆ field2

test_interface.field2
Initial value:
2 "field2", comp1, points2, 2, "1", yac.TimeUnit.HOUR, mask1
3)
create(cls, str field_name, Component comp, points, collection_size, str timestep, TimeUnit timeunit, masks=None)
Definition yac.pyx:1570

Definition at line 142 of file test_interface.py.

◆ field3

test_interface.field3
Initial value:
2 "field3", comp1, points1, 1, "1", yac.TimeUnit.HOUR
3)

Definition at line 145 of file test_interface.py.

◆ field4

test_interface.field4
Initial value:
2 "field4", comp1, points2, 1, "1", yac.TimeUnit.HOUR, mask1
3)

Definition at line 148 of file test_interface.py.

◆ grid1

test_interface.grid1 = yac.Reg2dGrid("grid1", x, x)

Definition at line 71 of file test_interface.py.

◆ grid2

test_interface.grid2
Initial value:
2 "grid2",
3 [3],
4 [0.0, 1.0, 0.0],
5 [0.0, 0.0, 1.0],
6 [0, 1, 2],
7 use_ll_edges=False,
8)
An unstuctured 2d Grid.
Definition yac.pyx:1467

Definition at line 85 of file test_interface.py.

◆ grid3

test_interface.grid3
Initial value:
2 "grid3",
3 [4],
4 [0.0, 1.0, 1.0, 0.0],
5 [0.0, 0.0, 1.0, 1.0],
6 [0, 1, 2, 3],
7 use_ll_edges=True,
8)

Definition at line 96 of file test_interface.py.

◆ grid4

test_interface.grid4
Initial value:
1= yac.CloudGrid("grid4",
2 [0.0, 1.0, 1.0, 0.0],
3 [0.0, 0.0, 1.0, 1.0])

Definition at line 105 of file test_interface.py.

◆ grid5

test_interface.grid5
Initial value:
2 [3],
3 [0.0, 1.0, 0.0],
4 [0.0, 0.0, 1.0],
5 [0, 1, 2],
6 [[0, 1], [1, 2], [2, 0]],
7 use_ll_edges=False,
8 )

Definition at line 112 of file test_interface.py.

◆ grid6

test_interface.grid6
Initial value:
2 [4],
3 [0.0, 1.0, 1.0, 0.0],
4 [0.0, 0.0, 1.0, 1.0],
5 [0, 1, 2, 3],
6 [[0, 1], [1, 2], [2, 3], [3, 0]],
7 use_ll_edges=True,
8 )

Definition at line 122 of file test_interface.py.

◆ grid7

test_interface.grid7 = yac.Reg2dGrid("grid7", x, x, north_pole = [3.6, 0.7])

Definition at line 132 of file test_interface.py.

◆ interp

test_interface.interp = yac.InterpolationStack()

Definition at line 153 of file test_interface.py.

◆ interp_json

test_interface.interp_json
Initial value:
2 "[{\"nnn\": {\"n\": 1}}]"
3)
from_string_json(cls, str interp_stack_string)
Definition yac.pyx:2054

Definition at line 190 of file test_interface.py.

◆ interp_yaml

test_interface.interp_yaml
Initial value:
2 "- nnn:\n n: 1"
3)
from_string_yaml(cls, str interp_stack_string)
Definition yac.pyx:2044

Definition at line 185 of file test_interface.py.

◆ mask1

test_interface.mask1 = grid2.def_mask(yac.Location.CELL, [True], name="mask1")

Definition at line 93 of file test_interface.py.

◆ points1

test_interface.points1 = grid1.def_points(yac.Location.CELL, [-0.5, 0.5], [-0.5, 0.5])

Definition at line 79 of file test_interface.py.

◆ points2

test_interface.points2 = grid2.def_points(yac.Location.CELL, [0.5], [0.5])

Definition at line 94 of file test_interface.py.

◆ points4

test_interface.points4
Initial value:
1= grid4.def_points([0.0, 1.0, 1.0, 0.0],
2 [0.0, 0.0, 1.0, 1.0])

Definition at line 109 of file test_interface.py.

◆ points5

test_interface.points5 = grid5.def_points(yac.Location.CELL, [0.5], [0.5])

Definition at line 120 of file test_interface.py.

◆ points7

test_interface.points7 = grid1.def_points(yac.Location.CELL, [-0.5, 0.5], [-0.5, 0.5])

Definition at line 133 of file test_interface.py.

◆ rank

test_interface.rank = MPI.COMM_WORLD.rank

Definition at line 17 of file test_interface.py.

◆ recv_info

test_interface.recv_info

Definition at line 259 of file test_interface.py.

◆ send_info

test_interface.send_info

Definition at line 259 of file test_interface.py.

◆ size

test_interface.size = MPI.COMM_WORLD.size

Definition at line 18 of file test_interface.py.

◆ src_lag

test_interface.src_lag

Definition at line 179 of file test_interface.py.

◆ write

test_interface.write

Definition at line 70 of file test_interface.py.

◆ x

test_interface.x = np.array([-1., 0., 1.])

Definition at line 69 of file test_interface.py.

◆ yac_comm

test_interface.yac_comm = yac.YAC(comm=MPI.COMM_WORLD)

Definition at line 40 of file test_interface.py.

◆ yac_def_instance

test_interface.yac_def_instance = yac.YAC(default_instance=True)

Definition at line 26 of file test_interface.py.

◆ yac_def_instance2

test_interface.yac_def_instance2 = yac.YAC.default_instance

Definition at line 27 of file test_interface.py.

◆ yac_from_id

test_interface.yac_from_id = yac.YAC.from_id(yac_def_instance2.instance_id)

Definition at line 28 of file test_interface.py.

◆ yac_instance

test_interface.yac_instance = yac.YAC()

Definition at line 44 of file test_interface.py.

◆ yaxt_exchanger_name

test_interface.yaxt_exchanger_name

Definition at line 180 of file test_interface.py.