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
using Gridap | |
using GridapGeosciences | |
order=1 | |
degree=4 | |
model = CubedSphereDiscreteModel(1; radius=rₑ) | |
# Forward integration of the shallow water equations |
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
using Gridap | |
# Distorted mesh | |
function rndm(p::Point) | |
r, s = p | |
x = r + 0.1*sin(2π*r)*sin(2π*s) | |
y = s + 0.1*sin(2π*r)*sin(2π*s) | |
Point(x,y) | |
end |