Skip to content

Commit

Permalink
Making some Ints Float64
Browse files Browse the repository at this point in the history
  • Loading branch information
swilliamson7 committed May 8, 2024
1 parent de2355e commit cfd1ba2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/default_parameters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

# DOMAIN RESOLUTION AND RATIO
nx::Int=100 # number of grid cells in x-direction
Lx::Int=4000e3 # length of the domain in x-direction [m]
L_ratio::Int=2 # Domain aspect ratio of Lx/Ly
Lx::Float64=4000e3 # length of the domain in x-direction [m]
L_ratio::Float64=2 # Domain aspect ratio of Lx/Ly

# PHYSICAL CONSTANTS
g::Real=0.1 # gravitational acceleration [m/s]
Expand All @@ -20,7 +20,7 @@
R::Real=6.371e6 # Earth's radius [m]

# SCALE
scale::Int=2^6 # multiplicative scale for the momentum equations u,v
scale::Float64=2^6 # multiplicative scale for the momentum equations u,v
scale_sst::Real=2^15 # multiplicative scale for sst

# WIND FORCING OPTIONS
Expand Down
2 changes: 1 addition & 1 deletion src/grid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ω::Real # Earth's angular frequency [s^-1]
ϕ::Real # central latitue of the domain (for coriolis) [°]
R::Real # Earth's radius [m]
scale::Int # multiplicative scale for momentum equations [1]
scale::Float64 # multiplicative scale for momentum equations [1]

# DOMAIN SIZES
Δ::Int=Lx / nx # grid spacing
Expand Down

0 comments on commit cfd1ba2

Please sign in to comment.