Skip to content

Commit

Permalink
refactor: changed python reader script component and grid names to ma…
Browse files Browse the repository at this point in the history
…tch ICON's
  • Loading branch information
wiltonloch committed Jun 26, 2024
1 parent 22efad5 commit eeb3475
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions examples/yac/yac_3d/yac_icon_data_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_yac_unstructured_grid(grid_filname):

cell_vertex_indices = map_vertices(vertices)

grid_name = "bubble_grid"
grid_name = "icon_atmos_grid"
grid = UnstructuredGrid(
grid_name,
np.ones(no_cells) * nv,
Expand Down Expand Up @@ -71,7 +71,7 @@ def prepare_data_for_yac(source):
def_calendar(Calendar.PROLEPTIC_GREGORIAN)
yac.def_datetime("2008-08-01T00:00:00Z", "2008-08-01T02:00:00Z")

component_name = "icon_data_reader"
component_name = "atm"
component = yac.def_comp(component_name)
grid = create_yac_unstructured_grid(grid_filename)

Expand Down
14 changes: 7 additions & 7 deletions libs/coupldyn_yac/yac_cartesian_dynamics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,28 +260,28 @@ CartesianDynamics::CartesianDynamics(const Config &config, const std::array<size
YAC_TIME_UNIT_ISO_FORMAT, &vvel_yac_id);

// --- Field coupling definitions ---
yac_cdef_couple("icon_data_reader", "bubble_grid", "pressure", "cleo", "cleo_grid", "pressure",
yac_cdef_couple("atm", "icon_atmos_grid", "pressure", "cleo", "cleo_grid", "pressure",
"PT1M", YAC_TIME_UNIT_ISO_FORMAT, YAC_REDUCTION_TIME_NONE, interp_stack_id, 0, 0);

yac_cdef_couple("icon_data_reader", "bubble_grid", "temperature", "cleo", "cleo_grid",
yac_cdef_couple("atm", "icon_atmos_grid", "temperature", "cleo", "cleo_grid",
"temperature", "PT1M", YAC_TIME_UNIT_ISO_FORMAT, YAC_REDUCTION_TIME_NONE,
interp_stack_id, 0, 0);

yac_cdef_couple("icon_data_reader", "bubble_grid", "qvap", "cleo", "cleo_grid", "qvap", "PT1M",
yac_cdef_couple("atm", "icon_atmos_grid", "qvap", "cleo", "cleo_grid", "qvap", "PT1M",
YAC_TIME_UNIT_ISO_FORMAT, YAC_REDUCTION_TIME_NONE, interp_stack_id, 0, 0);

yac_cdef_couple("icon_data_reader", "bubble_grid", "qcond", "cleo", "cleo_grid", "qcond", "PT1M",
yac_cdef_couple("atm", "icon_atmos_grid", "qcond", "cleo", "cleo_grid", "qcond", "PT1M",
YAC_TIME_UNIT_ISO_FORMAT, YAC_REDUCTION_TIME_NONE, interp_stack_id, 0, 0);

yac_cdef_couple("icon_data_reader", "bubble_grid", "eastward_wind",
yac_cdef_couple("atm", "icon_atmos_grid", "eastward_wind",
"cleo", "cleo_grid", "eastward_wind", "PT1M",
YAC_TIME_UNIT_ISO_FORMAT, YAC_REDUCTION_TIME_NONE, interp_stack_id, 0, 0);

yac_cdef_couple("icon_data_reader", "bubble_grid", "northward_wind",
yac_cdef_couple("atm", "icon_atmos_grid", "northward_wind",
"cleo", "cleo_grid", "northward_wind", "PT1M",
YAC_TIME_UNIT_ISO_FORMAT, YAC_REDUCTION_TIME_NONE, interp_stack_id, 0, 0);

yac_cdef_couple("icon_data_reader", "bubble_grid", "vvel", "cleo", "cleo_grid", "vvel", "PT1M",
yac_cdef_couple("atm", "icon_atmos_grid", "vvel", "cleo", "cleo_grid", "vvel", "PT1M",
YAC_TIME_UNIT_ISO_FORMAT, YAC_REDUCTION_TIME_NONE, interp_stack_id, 0, 0);

// --- End of YAC definitions ---
Expand Down

0 comments on commit eeb3475

Please sign in to comment.