Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mesh_tools/hex_projection/project_hexes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ program project_hexes
integer, allocatable, dimension(:) :: indexToCellID, indexToVertexID, indexToEdgeID

real(dp), allocatable, dimension(:) :: dcEdge, dvEdge
real(dp), parameter :: earth_radius = 6378.14_dp*1000.0_dp ! meters
real(dp) :: earth_radius
real(dp) :: invRadius, invRadius2

real(dp) :: nominalMinDc
Expand Down Expand Up @@ -878,6 +878,7 @@ program project_hexes

! set mesh on a unit sphere - this is what init_atmosphere expects - it will expand it to the full sphere.

earth_radius = 1000.0_dp*earth_radius_km
invRadius = 1.0_dp/earth_radius
invRadius2 = invRadius*invRadius

Expand Down
Loading