Skip to content

Commit

Permalink
Merge pull request #672 from MFraters/add_gwb-annulus_test_coverage
Browse files Browse the repository at this point in the history
Add tester for gwb-grid annulus.
  • Loading branch information
MFraters committed Feb 23, 2024
2 parents 704e06d + 31bbc56 commit 7b227fc
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/gwb-grid/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ int main(int argc, char **argv)
grid_x[counter] = std::cos(theta) * (inner_radius + zi);
grid_z[counter] = std::sin(theta) * (inner_radius + zi);
grid_depth[counter] = outer_radius - std::sqrt(grid_x[counter] * grid_x[counter] + grid_z[counter] * grid_z [counter]);
grid_depth[counter] = (std::fabs(grid_depth[counter]) < 1e-8 ? 0 : grid_depth[counter]);
counter++;
}
}
Expand Down
18 changes: 18 additions & 0 deletions tests/gwb-grid/3d_annulus_plume.grid
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# output variables
grid_type = annulus
dim = 2
compositions = 3
vtu_output_format = ASCII

# domain of the grid
x_max = 25
x_min = -25
y_max = 25
y_min = -25
z_min = 4371000
z_max = 6371000

# grid properties
n_cell_x = 8
n_cell_y = 8
n_cell_z = 8
Loading

0 comments on commit 7b227fc

Please sign in to comment.