From e3eddb7b206db4feeffd6ab5119f88cf98e90f5a Mon Sep 17 00:00:00 2001 From: Harrison Nicholls Date: Sat, 29 Jun 2024 10:39:53 +0100 Subject: [PATCH] Fixed pgrid for tests --- src/atmosphere.jl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/atmosphere.jl b/src/atmosphere.jl index d1b602a7..7e144e0f 100644 --- a/src/atmosphere.jl +++ b/src/atmosphere.jl @@ -778,12 +778,11 @@ module atmosphere # Surface pressure atmos.pl[end] = atmos.p_boa - # Bottom two layers - atmos.pl[end-1] = atmos.pl[end ]*(1.0-boundary_scale) - atmos.pl[end-2] = atmos.pl[end-1]*(1.0-boundary_scale) + # Bottom layer + atmos.pl[end-1] = atmos.pl[end]*(1.0-boundary_scale) # Logarithmically-spaced levels - atmos.pl[1:end-2] .= 10 .^ range( log10(atmos.p_toa), stop=log10(atmos.pl[end-2]), length=atmos.nlev_l-2) + atmos.pl[1:end-1] .= 10 .^ range( log10(atmos.p_toa), stop=log10(atmos.pl[end-1]), length=atmos.nlev_l-1) # Set pressure cell-centre array using geometric mean atmos.p = zeros(Float64, atmos.nlev_c)