From cfd1ba2da9c3e0b970524adb42df93440aba3df6 Mon Sep 17 00:00:00 2001 From: Sarah Williamson Date: Wed, 8 May 2024 10:10:20 -0500 Subject: [PATCH] Making some Ints Float64 --- src/default_parameters.jl | 6 +++--- src/grid.jl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/default_parameters.jl b/src/default_parameters.jl index 7df6de2..23eea52 100644 --- a/src/default_parameters.jl +++ b/src/default_parameters.jl @@ -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] @@ -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 diff --git a/src/grid.jl b/src/grid.jl index 2fe70db..3ebbdcd 100644 --- a/src/grid.jl +++ b/src/grid.jl @@ -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