Skip to content

Commit

Permalink
local_extent_x/y->domain_extent_x/y
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Aug 21, 2024
1 parent c3c197d commit 921fdb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Partitioner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ void Partitioner::save_metadata(const std::string& filename) const
NC_CHECK(nc_def_var(bbox_gid, "domain_x", NC_INT, 1, &dimid, &top_x_vid));
NC_CHECK(nc_def_var(bbox_gid, "domain_y", NC_INT, 1, &dimid, &top_y_vid));
NC_CHECK(
nc_def_var(bbox_gid, "local_extent_x", NC_INT, 1, &dimid, &cnt_x_vid));
nc_def_var(bbox_gid, "domain_extent_x", NC_INT, 1, &dimid, &cnt_x_vid));
NC_CHECK(
nc_def_var(bbox_gid, "local_extent_y", NC_INT, 1, &dimid, &cnt_y_vid));
nc_def_var(bbox_gid, "domain_extent_y", NC_INT, 1, &dimid, &cnt_y_vid));
// Connectivity group
NC_CHECK(nc_def_var(connectivity_gid, "top_neighbors", NC_INT, 1, &dimid,
&top_num_vid));
Expand Down
4 changes: 2 additions & 2 deletions Partitioner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ class LIB_EXPORT Partitioner
* Saves the boxes and connectivity information of the latest 2D domain
* decomposition in a NetCDF file. The NetCDF file contains a dimension P
* equal to the number of partitions and integer variables domain_x(P),
* domain_y(P), local_extent_x(P) and local_extent_y(P). Variables domain_x
* domain_y(P), domain_extent_x(P) and domain_extent_y(P). Variables domain_x
* and domain_y are defined as the coordinates of the upper left corner of the
* box for each partition, while the local_extent_x and local_extent_y
* box for each partition, while the domain_extent_x and domain_extent_y
* variables define the local extent of the x and y dimensions respectively.
* The file also defines the variables X_neighbors(P), X_neighbor_ids(X_dim)
* and X_neighbor_halos(X_dim), where X is top/bottom/left/right, which
Expand Down

0 comments on commit 921fdb9

Please sign in to comment.