Skip to content

Commit 534dd0b

Browse files
Merge branch 'develop' into feature/sfc_climo_gen.frac
Fixes ufs-community#709.
2 parents b483cc8 + dca00a3 commit 534dd0b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sorc/chgres_cube.fd/atm_input_data.F90

+7-1
Original file line numberDiff line numberDiff line change
@@ -2154,13 +2154,19 @@ subroutine read_input_atm_grib2_file(localpet)
21542154

21552155
call quicksort(rlevs,1,lev_input)
21562156

2157-
do i = 1, lev_input
2157+
do i = 1, lev_input
21582158
if (isnative) then
21592159
write(slevs(i), '(i6)') nint(rlevs(i))
21602160
slevs(i) = trim(slevs(i)) // " hybrid"
2161+
if (i>1) then
2162+
if (any(slevs(1:i-1)==slevs(i))) call error_handler("Duplicate vertical level entries found.",1)
2163+
endif
21612164
else
21622165
write(slevs(i), '(f11.2)') rlevs(i)
21632166
slevs(i) = trim(slevs(i)) // " Pa"
2167+
if (i>1) then
2168+
if (any(slevs(1:i-1)==slevs(i))) call error_handler("Duplicate vertical level entries found.",1)
2169+
endif
21642170
endif
21652171
enddo
21662172

0 commit comments

Comments
 (0)