-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove coriolis forces from the cache
- Loading branch information
1 parent
8cdd3f8
commit 2e8e66c
Showing
13 changed files
with
177 additions
and
116 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
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,65 @@ | ||
import ClimaCore.Geometry | ||
|
||
f³(lg, global_geom, params) = f³(lg, lg.coordinates, global_geom, params) | ||
|
||
f¹²(lg, coord, global_geom, params) = | ||
f¹²(lg, lg.coordinates, global_geom, params) | ||
|
||
function f³( | ||
lg, | ||
coord::Geometry.LatLongZPoint, | ||
global_geom::Geometry.DeepSphericalGlobalGeometry, | ||
params, | ||
) | ||
Ω = CAP.Omega(params) | ||
CT3( | ||
CT123( | ||
Geometry.LocalVector( | ||
Geometry.Cartesian123Vector(zero(Ω), zero(Ω), 2 * Ω), | ||
global_geom, | ||
coord, | ||
), | ||
lg, | ||
), | ||
lg, | ||
) | ||
end | ||
|
||
function f¹²( | ||
lg, | ||
coord::Geometry.LatLongZPoint, | ||
global_geom::Geometry.DeepSphericalGlobalGeometry, | ||
params, | ||
) | ||
Ω = CAP.Omega(params) | ||
CT12( | ||
CT123( | ||
Geometry.LocalVector( | ||
Geometry.Cartesian123Vector(zero(Ω), zero(Ω), 2 * Ω), | ||
global_geom, | ||
coord, | ||
), | ||
lg, | ||
), | ||
lg, | ||
) | ||
end | ||
|
||
# Shallow sphere | ||
function f³(lg, coord::Geometry.LatLongZPoint, global_geom, params) | ||
Ω = CAP.Omega(params) | ||
CT3(Geometry.WVector(2 * Ω * sind(coord.lat), lg), lg) | ||
end | ||
|
||
# Shallow cartesian | ||
function f³(lg, coord, global_geom, params) | ||
f = CAP.f_plane_coriolis_frequency(params) | ||
CT3(Geometry.WVector(f, lg), lg) | ||
end | ||
|
||
f¹²(lg, coord::Geometry.LatLongZPoint, global_geom, params) = | ||
error("Not supported for $coord, $global_geom.") | ||
f¹²(lg, coord, global_geom, p) = | ||
error("Not supported for $coord, $global_geom.") | ||
|
||
Φ(g, z) = g * z |
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
Oops, something went wrong.