-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in the adapt of
PartialCellBottom
(#3682)
* fix a bug in the adapt * first fix * bugfix * these should be all the bugs, still need to add the tests * another bugfix * Clamp bottom_height to top and bottom of grid * Bugfix * Implement clamping for both GF and PC bottom * Convert internal tide example to use extension * apply_regionally *sigh* * Disambiguate * using CairoMakie --------- Co-authored-by: Gregory L. Wagner <[email protected]>
- Loading branch information
1 parent
8700865
commit 675e0ba
Showing
5 changed files
with
103 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
include("dependencies_for_runtests.jl") | ||
|
||
grid = RectilinearGrid(; size=(2, 2, 2), extent = (1, 1, 1)) | ||
|
||
@testset "Testing Immersed Boundaries" begin | ||
|
||
@info "Testing the immersed boundary construction..." | ||
|
||
bottom(x, y) = -1 + 0.5 * exp(-x^2 - y^2) | ||
ibg = ImmersedBoundaryGrid(grid, GridFittedBottom(bottom)) | ||
|
||
# Unit test (bottom is at the right position) | ||
|
||
@info "Testing stably stratified initial conditions..." | ||
|
||
end |