Skip to content

Commit

Permalink
Disable the 2D chunk due to found issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
MFraters committed May 25, 2023
1 parent ab83b2d commit 96f167f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/gwb-grid/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ int main(int argc, char **argv)
double inner_radius = z_min;
double outer_radius = z_max;

WBAssertThrow(dim ==3, "2D is currently not supported for the chunk.");
WBAssertThrow(x_min <= x_max, "The minimum longitude must be less than the maximum longitude.");
WBAssertThrow(y_min <= y_max, "The minimum latitude must be less than the maximum latitude.");
WBAssertThrow(inner_radius < outer_radius, "The inner radius must be less than the outer radius.");
Expand All @@ -798,7 +799,7 @@ int main(int argc, char **argv)
n_p = (n_cell_x + 1) * (n_cell_z + 1) * (dim == 3 ? (n_cell_y + 1) : 1);

double dlong = opening_angle_long_rad / static_cast<double>(n_cell_x);
double dlat = opening_angle_lat_rad / static_cast<double>(n_cell_y);
double dlat = dim == 3 ? opening_angle_lat_rad / static_cast<double>(n_cell_y) : 0.;
double lr = outer_radius - inner_radius;
double dr = lr / static_cast<double>(n_cell_z);

Expand Down

0 comments on commit 96f167f

Please sign in to comment.