Skip to content

Commit f4ed0d8

Browse files
committed
gρz_ccc -> g′z_ccc
1 parent 91803fc commit f4ed0d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PotentialEnergyEquationTerms.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ NonhydrostaticModel{CPU, RectilinearGrid}(time = 0 seconds, iteration = 0)
6464
julia> PotentialEnergy(model)
6565
KernelFunctionOperation at (Center, Center, Center)
6666
├── grid: 1×1×100 RectilinearGrid{Float64, Flat, Flat, Bounded} on CPU with 0×0×3 halo
67-
├── kernel_function: gρz_ccc (generic function with 1 method)
67+
├── kernel_function: g′z_ccc (generic function with 1 method)
6868
└── arguments: ("KernelFunctionOperation at (Center, Center, Center)", "KernelFunctionOperation at (Center, Center, Center)", "(g=9.80665, ρ₀=1020.0)")
6969
```
7070
@@ -90,7 +90,7 @@ julia> geopotential_height = 0; # density variable will be σ₀
9090
julia> PotentialEnergy(model; geopotential_height)
9191
KernelFunctionOperation at (Center, Center, Center)
9292
├── grid: 1×1×100 RectilinearGrid{Float64, Flat, Flat, Bounded} on CPU with 0×0×3 halo
93-
├── kernel_function: gρz_ccc (generic function with 1 method)
93+
├── kernel_function: g′z_ccc (generic function with 1 method)
9494
└── arguments: ("KernelFunctionOperation at (Center, Center, Center)", "KernelFunctionOperation at (Center, Center, Center)", "(g=9.80665, ρ₀=1020.0)")
9595
```
9696
"""
@@ -105,9 +105,9 @@ KernelFunctionOperation at (Center, Center, Center)
105105
parameters = (g = model.buoyancy.model.gravitational_acceleration,
106106
ρ₀ = model.buoyancy.model.equation_of_state.reference_density)
107107

108-
return KernelFunctionOperation{Center, Center, Center}(gρz_ccc, grid, ρ, Z, parameters)
108+
return KernelFunctionOperation{Center, Center, Center}(g′z_ccc, grid, ρ, Z, parameters)
109109
end
110110

111-
@inline gρz_ccc(i, j, k, grid, ρ, Z, p) = (p.g / p.ρ₀) * ρ[i, j, k] * Z[i, j, k]
111+
@inline g′z_ccc(i, j, k, grid, ρ, Z, p) = (p.g / p.ρ₀) * ρ[i, j, k] * Z[i, j, k]
112112

113113
end # module

0 commit comments

Comments
 (0)