|
YAC 3.12.0
Yet Another Coupler
|
Variables | |
| yac = YAC() | |
| comp1 | |
| comp2 | |
| grid1 = Reg2dGrid("grid1", [-1, 0, 1], [-1, 0, 1]) | |
| points1 = grid1.def_points(Location.CELL, [-0.5, 0.5], [-0.5, 0.5]) | |
| grid2 = Reg2dGrid("grid2", [-1, -1/3, 1/3, 1], [-1, -1/3, 1/3, 1]) | |
| points2 = grid2.def_points(Location.CELL, [-2/3, 0.0, 2/3], [-2/3, 0.0, 2/3]) | |
| field1 = Field.create("field1", comp1, points1, 1, "1", TimeUnit.HOUR) | |
| field2 = Field.create("field2", comp2, points2, 1, "1", TimeUnit.HOUR) | |
| field3 = Field.create("field3", comp2, points2, 1, "1", TimeUnit.HOUR) | |
| field4 = Field.create("field4", comp2, points2, 1, "1", TimeUnit.HOUR) | |
| interp = InterpolationStack() | |
| dict | couple_kwargs |
| tgt_field | |
| use_raw_exchange | |
| raw_data = field2.get_raw_interp_weights_data() | |
| indptr = np.insert(np.cumsum(raw_data.num_src_per_tgt), 0, 0) | |
| raw_data_csr = field4.get_raw_interp_weights_data_csr() | |
| W = csr_matrix((raw_data_csr.weights, raw_data_csr.src_idx, raw_data_csr.src_indptr)) | |
| buf = np.empty(shape=(1, raw_data.src_field_buffer_sizes[0]), dtype=np.float64) | |
| int | i = 0. |
| f2_buf = np.empty(shape=(1, field2.size), dtype=np.float64) | |
| f3_buf | |
| info | |
| f4_buf = W@buf[0, :] | |
| test_raw_exchange.buf = np.empty(shape=(1, raw_data.src_field_buffer_sizes[0]), dtype=np.float64) |
Definition at line 87 of file test_raw_exchange.py.
| test_raw_exchange.comp1 |
Definition at line 34 of file test_raw_exchange.py.
| test_raw_exchange.comp2 |
Definition at line 34 of file test_raw_exchange.py.
| dict test_raw_exchange.couple_kwargs |
Definition at line 52 of file test_raw_exchange.py.
| test_raw_exchange.f2_buf = np.empty(shape=(1, field2.size), dtype=np.float64) |
Definition at line 95 of file test_raw_exchange.py.
| test_raw_exchange.f3_buf |
Definition at line 100 of file test_raw_exchange.py.
Definition at line 104 of file test_raw_exchange.py.
| test_raw_exchange.field1 = Field.create("field1", comp1, points1, 1, "1", TimeUnit.HOUR) |
Definition at line 43 of file test_raw_exchange.py.
| test_raw_exchange.field2 = Field.create("field2", comp2, points2, 1, "1", TimeUnit.HOUR) |
Definition at line 44 of file test_raw_exchange.py.
| test_raw_exchange.field3 = Field.create("field3", comp2, points2, 1, "1", TimeUnit.HOUR) |
Definition at line 45 of file test_raw_exchange.py.
| test_raw_exchange.field4 = Field.create("field4", comp2, points2, 1, "1", TimeUnit.HOUR) |
Definition at line 46 of file test_raw_exchange.py.
| test_raw_exchange.grid1 = Reg2dGrid("grid1", [-1, 0, 1], [-1, 0, 1]) |
Definition at line 36 of file test_raw_exchange.py.
| test_raw_exchange.grid2 = Reg2dGrid("grid2", [-1, -1/3, 1/3, 1], [-1, -1/3, 1/3, 1]) |
Definition at line 40 of file test_raw_exchange.py.
| int test_raw_exchange.i = 0. |
Definition at line 89 of file test_raw_exchange.py.
| test_raw_exchange.indptr = np.insert(np.cumsum(raw_data.num_src_per_tgt), 0, 0) |
Definition at line 82 of file test_raw_exchange.py.
| test_raw_exchange.info |
Definition at line 100 of file test_raw_exchange.py.
| test_raw_exchange.interp = InterpolationStack() |
Definition at line 48 of file test_raw_exchange.py.
| test_raw_exchange.points1 = grid1.def_points(Location.CELL, [-0.5, 0.5], [-0.5, 0.5]) |
Definition at line 38 of file test_raw_exchange.py.
| test_raw_exchange.points2 = grid2.def_points(Location.CELL, [-2/3, 0.0, 2/3], [-2/3, 0.0, 2/3]) |
Definition at line 41 of file test_raw_exchange.py.
| test_raw_exchange.raw_data = field2.get_raw_interp_weights_data() |
Definition at line 81 of file test_raw_exchange.py.
| test_raw_exchange.raw_data_csr = field4.get_raw_interp_weights_data_csr() |
Definition at line 84 of file test_raw_exchange.py.
| test_raw_exchange.tgt_field |
Definition at line 64 of file test_raw_exchange.py.
| test_raw_exchange.use_raw_exchange |
Definition at line 65 of file test_raw_exchange.py.
| test_raw_exchange.W = csr_matrix((raw_data_csr.weights, raw_data_csr.src_idx, raw_data_csr.src_indptr)) |
Definition at line 85 of file test_raw_exchange.py.
| test_raw_exchange.yac = YAC() |
Definition at line 30 of file test_raw_exchange.py.