Skip to content

Commit c8c85b5

Browse files
authored
Remove trailing spaces (#487)
* remove trailing spaces * reduce chat :) * remove trailing spaces
1 parent aeafaf6 commit c8c85b5

30 files changed

+167
-167
lines changed

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pages = [
5151
"Near-global Ocean simulation" => "literated/near_global_ocean_simulation.md",
5252
],
5353

54-
"Library" => [
54+
"Library" => [
5555
"Contents" => "library/outline.md",
5656
"Public" => "library/public.md",
5757
"Private" => "library/internals.md",

examples/generate_bathymetry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This example shows how to configure an Immersed boundary grid with realistic bathymetry
44
# using ClimaOcean.jl by generating the bathymetry data for the Mediterranean Sea.
55
#
6-
# For this example, we need Oceananigans for the LatitudeLongitudeGrid and Field utilities,
6+
# For this example, we need Oceananigans for the LatitudeLongitudeGrid and Field utilities,
77
# ClimaOcean to donwload and regrid the bathymetry, and CairoMakie to visualize the grid.
88

99
using ClimaOcean

examples/mediterranean_simulation_with_ecco_restoring.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ grid = ImmersedBoundaryGrid(grid, GridFittedBottom(bottom_height))
7171
# using the function `ECCO_restoring_forcing` to apply restoring forcings for these tracers.
7272
# This allows us to nudge the model towards realistic temperature and salinity profiles.
7373

74-
start_date = DateTime(1993, 1, 1)
74+
start_date = DateTime(1993, 1, 1)
7575
end_date = DateTime(1993, 12, 1)
7676

7777
FT = ECCO_restoring_forcing(:temperature; start_date, end_date, architecture = GPU(), timescale = 2days)
@@ -90,7 +90,7 @@ ocean = ocean_simulation(grid; forcing = (T = FT, S = FS))
9090
# In this case, our ECCO dataset has access to a temperature and a salinity
9191
# field, so we initialize temperature T and salinity S from ECCO.
9292

93-
set!(ocean.model, T = ECCOMetadatum(:temperature; date=start_date),
93+
set!(ocean.model, T = ECCOMetadatum(:temperature; date=start_date),
9494
S = ECCOMetadatum(:salinity; date=start_date))
9595

9696
fig = Figure()

experiments/flux_climatology/flux_climatology.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,17 @@ end
116116
#####
117117

118118
struct PrescribedOcean{A, G, C, U, T, F} <: AbstractModel{Nothing}
119-
architecture :: A
120-
grid :: G
119+
architecture :: A
120+
grid :: G
121121
clock :: Clock{C}
122122
velocities :: U
123123
tracers :: T
124124
timeseries :: F
125125
end
126126

127-
function PrescribedOcean(timeseries;
128-
grid,
129-
clock=Clock{Float64}(time = 0))
127+
function PrescribedOcean(timeseries;
128+
grid,
129+
clock=Clock{Float64}(time = 0))
130130

131131
τx = Field{Face, Center, Nothing}(grid)
132132
τy = Field{Center, Face, Nothing}(grid)
@@ -219,7 +219,7 @@ function progress(sim)
219219
msg *= @sprintf(", max|u|: (%.2e, %.2e) m s⁻¹, extrema(T): (%.2f, %.2f) ᵒC, wall time: %s",
220220
umax..., Tmax, Tmin, prettytime(step_time))
221221

222-
@info msg
222+
@info msg
223223

224224
wall_time[] = time_ns()
225225
end

src/DataWrangling/JRA55/JRA55.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export JRA55FieldTimeSeries, JRA55PrescribedAtmosphere, RepeatYearJRA55, MultiYe
44

55
using Oceananigans
66
using Oceananigans.Units
7-
7+
88
using Oceananigans.Architectures: arch_array
99
using Oceananigans.DistributedComputations
1010
using Oceananigans.DistributedComputations: child_architecture
@@ -22,7 +22,7 @@ using ClimaOcean.OceanSeaIceModels:
2222
using CUDA: @allowscalar
2323

2424
using NCDatasets
25-
using JLD2
25+
using JLD2
2626
using Dates
2727
using Scratch
2828

src/DataWrangling/JRA55/JRA55_field_time_series.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ function JRA55FieldTimeSeries(metadata::JRA55Metadata, architecture=CPU(), FT=Fl
325325
download_dataset(metadata)
326326

327327
# Regularize the backend in case of `JRA55NetCDFBackend`
328-
if backend isa JRA55NetCDFBackend
328+
if backend isa JRA55NetCDFBackend
329329
if backend.metadata isa Nothing
330330
backend = JRA55NetCDFBackend(backend.length, metadata)
331331
end

src/DataWrangling/JRA55/JRA55_prescribed_atmosphere.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function JRA55PrescribedAtmosphere(architecture = CPU(), FT = Float32;
3030
other_kw...)
3131

3232
kw = (; time_indexing, backend, start_date, end_date, dataset)
33-
kw = merge(kw, other_kw)
33+
kw = merge(kw, other_kw)
3434

3535
ua = JRA55FieldTimeSeries(:eastward_velocity, architecture, FT; kw...)
3636
va = JRA55FieldTimeSeries(:northward_velocity, architecture, FT; kw...)
@@ -48,7 +48,7 @@ function JRA55PrescribedAtmosphere(architecture = CPU(), FT = Float32;
4848
# Remember that rivers and icebergs are on a different grid and have
4949
# a different frequency than the rest of the JRA55 data. We use `PrescribedAtmospheres`
5050
# "auxiliary_freshwater_flux" feature to represent them.
51-
if include_rivers_and_icebergs
51+
if include_rivers_and_icebergs
5252
Fri = JRA55FieldTimeSeries(:river_freshwater_flux, architecture; kw...)
5353
Fic = JRA55FieldTimeSeries(:iceberg_freshwater_flux, architecture; kw...)
5454
auxiliary_freshwater_flux = (rivers = Fri, icebergs = Fic)

src/Diagnostics/mixed_layer_depth.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const f = Face()
5757
@kernel function _compute_mixed_layer_depth!(mld, grid, b, Δb★)
5858
i, j = @index(Global, NTuple)
5959
Nz = size(grid, 3)
60-
60+
6161
Δb = zero(grid)
6262
bN = @inbounds b[i, j, Nz]
6363
mixed = true

src/InitialConditions/InitialConditions.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,30 @@ using KernelAbstractions.Extras.LoopInfo: @unroll
1616
using JLD2
1717

1818
# Implementation of 3-dimensional regridding
19-
# TODO: move all the following to Oceananigans!
19+
# TODO: move all the following to Oceananigans!
2020

2121
using Oceananigans.Fields: regrid!, interpolate!
22-
using Oceananigans.Grids: cpu_face_constructor_x,
23-
cpu_face_constructor_y,
22+
using Oceananigans.Grids: cpu_face_constructor_x,
23+
cpu_face_constructor_y,
2424
cpu_face_constructor_z,
2525
topology
2626

2727
# Should we move this to grids??
28-
construct_grid(::Type{<:RectilinearGrid}, arch, size, extent, topology) =
28+
construct_grid(::Type{<:RectilinearGrid}, arch, size, extent, topology) =
2929
RectilinearGrid(arch; size, x = extent[1], y = extent[2], z = extent[2], topology)
3030

31-
construct_grid(::Type{<:LatitudeLongitudeGrid}, arch, size, extent, topology) =
31+
construct_grid(::Type{<:LatitudeLongitudeGrid}, arch, size, extent, topology) =
3232
LatitudeLongitudeGrid(arch; size, longitude = extent[1], latitude = extent[2], z = extent[3], topology)
3333

3434
# Regrid a field in three dimensions
3535
function three_dimensional_regrid!(a, b)
3636
target_grid = a.grid isa ImmersedBoundaryGrid ? a.grid.underlying_grid : a.grid
37-
source_grid = b.grid isa ImmersedBoundaryGrid ? b.grid.underlying_grid : b.grid
37+
source_grid = b.grid isa ImmersedBoundaryGrid ? b.grid.underlying_grid : b.grid
3838

3939
topo = topology(target_grid)
4040
arch = architecture(target_grid)
4141
arch = child_architecture(arch)
42-
42+
4343
target_y = yt = cpu_face_constructor_y(target_grid)
4444
target_z = zt = cpu_face_constructor_z(target_grid)
4545

@@ -56,7 +56,7 @@ function three_dimensional_regrid!(a, b)
5656
field_z = Field(location(b), zgrid)
5757
regrid!(field_z, zgrid, source_grid, b)
5858

59-
# regrid in y
59+
# regrid in y
6060
@debug "Regridding in y"
6161
ygrid = construct_grid(typeof(target_grid), arch, (Ns[1], Nt[2], Nt[3]), (xs, yt, zt), topo)
6262
field_y = Field(location(b), ygrid);

src/InitialConditions/diffuse_tracers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function diffuse_tracers(initial_tracers;
6060
smoothing_simulation = Simulation(smoothing_model; Δt, stop_time=1)
6161

6262
# Remove NaN checker
63-
pop!(smoothing_simulation.callbacks, :nan_checker)
63+
pop!(smoothing_simulation.callbacks, :nan_checker)
6464

6565
# Restore values to default in the masked region
6666
function restore_values(sim)

0 commit comments

Comments
 (0)