Skip to content
Snippets Groups Projects
Commit cadc95a6 authored by Moritz Hanke's avatar Moritz Hanke
Browse files

improves test coverage of config_yaml

parent c7ea0276
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,10 @@
"tgt_component": "comp_B",
"src_grid": "grid_A",
"tgt_grid": "grid_B",
"field": "A_to_B",
"field": {
"src": "A_to_B_src",
"tgt": "A_to_B_tgt"
},
"coupling_period": "PT01.000S",
"time_reduction": "none",
"src_lag": 0,
......
......@@ -971,7 +971,6 @@ static struct field_couple_field_names yaml_parse_field_name(
// if the node contains different names for the source and target field
} else {
field_name.src =
fy_node_mapping_lookup_scalar0_by_simple_key(
field_node, "src", -1);
......
......@@ -203,7 +203,7 @@ CONTAINS
! define field
CALL yac_fdef_field( &
'A_to_B', comp_id, (/cell_point_id/), 1, 1, "1", YAC_TIME_UNIT_SECOND, &
'A_to_B_src', comp_id, (/cell_point_id/), 1, 1, "1", YAC_TIME_UNIT_SECOND, &
field_id)
CALL yac_fdef_field( &
'A_to_B_multi', comp_id, (/cell_point_id, vertex_point_id/), 2, &
......@@ -308,7 +308,7 @@ CONTAINS
! define field
CALL yac_fdef_field( &
'A_to_B', comp_id, (/point_id_B/), 1, 1, "1", YAC_TIME_UNIT_SECOND, &
'A_to_B_tgt', comp_id, (/point_id_B/), 1, 1, "1", YAC_TIME_UNIT_SECOND, &
field_id)
CALL yac_fdef_field( &
'A_to_B_multi', comp_id, (/point_id_B/), 1, 1, "1", YAC_TIME_UNIT_SECOND, &
......
......@@ -166,7 +166,7 @@ static void run_comp_a() {
int field_id, multi_field_id;
int collection_size = 1;
yac_cdef_field(
"A_to_B", comp_id, &cell_point_id, 1, collection_size, "1",
"A_to_B_src", comp_id, &cell_point_id, 1, collection_size, "1",
YAC_TIME_UNIT_SECOND, &field_id);
int multi_field_point_ids[2], multi_field_mask_ids[2];
multi_field_point_ids[0] = cell_point_id;
......@@ -266,7 +266,7 @@ static void run_comp_b() {
int field_id, multi_field_id;
int collection_size = 1;
yac_cdef_field(
"A_to_B", comp_id, &point_id_B, 1, collection_size, "1",
"A_to_B_tgt", comp_id, &point_id_B, 1, collection_size, "1",
YAC_TIME_UNIT_SECOND, &field_id);
yac_cdef_field(
"A_to_B_multi", comp_id, &point_id_B, 1, collection_size, "1",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment