|
| | test_raw_exchange.yac = YAC() |
| |
| | test_raw_exchange.comp1 |
| |
| | test_raw_exchange.comp2 |
| |
| | test_raw_exchange.grid1 = Reg2dGrid("grid1", [-1, 0, 1], [-1, 0, 1]) |
| |
| | test_raw_exchange.points1 = grid1.def_points(Location.CELL, [-0.5, 0.5], [-0.5, 0.5]) |
| |
| | test_raw_exchange.grid2 = Reg2dGrid("grid2", [-1, -1/3, 1/3, 1], [-1, -1/3, 1/3, 1]) |
| |
| | test_raw_exchange.points2 = grid2.def_points(Location.CELL, [-2/3, 0.0, 2/3], [-2/3, 0.0, 2/3]) |
| |
| | test_raw_exchange.field1 = Field.create("field1", comp1, points1, 1, "1", TimeUnit.HOUR) |
| |
| | test_raw_exchange.field2 = Field.create("field2", comp2, points2, 1, "1", TimeUnit.HOUR) |
| |
| | test_raw_exchange.field3 = Field.create("field3", comp2, points2, 1, "1", TimeUnit.HOUR) |
| |
| | test_raw_exchange.field4 = Field.create("field4", comp2, points2, 1, "1", TimeUnit.HOUR) |
| |
| | test_raw_exchange.interp = InterpolationStack() |
| |
| dict | test_raw_exchange.couple_kwargs |
| |
| | test_raw_exchange.tgt_field |
| |
| | test_raw_exchange.use_raw_exchange |
| |
| | test_raw_exchange.raw_data = field2.get_raw_interp_weights_data() |
| |
| | test_raw_exchange.indptr = np.insert(np.cumsum(raw_data.num_src_per_tgt), 0, 0) |
| |
| | test_raw_exchange.raw_data_csr = field4.get_raw_interp_weights_data_csr() |
| |
| | test_raw_exchange.W = csr_matrix((raw_data_csr.weights, raw_data_csr.src_idx, raw_data_csr.src_indptr)) |
| |
| | test_raw_exchange.buf = np.empty(shape=(1, raw_data.src_field_buffer_sizes[0]), dtype=np.float64) |
| |
| int | test_raw_exchange.i = 0. |
| |
| | test_raw_exchange.f2_buf = np.empty(shape=(1, field2.size), dtype=np.float64) |
| |
| | test_raw_exchange.f3_buf |
| |
| | test_raw_exchange.info |
| |
| | test_raw_exchange.f4_buf = W@buf[0, :] |
| |
- Test
- A test for the raw exchange with python
Definition in file test_raw_exchange.py.