Skip to content

Commit 6fddf3c

Browse files
authored
Merge pull request #2022 from johnpaulalex/remove_unused
Delete unused hist_add_subscript method (no references in the CTSM repo)
2 parents 680833a + 0d44483 commit 6fddf3c

File tree

1 file changed

+1
-33
lines changed

1 file changed

+1
-33
lines changed

src/main/histFileMod.F90

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ module histFileMod
147147
public :: hist_addfld1d ! Add a 1d single-level field to the list of all history fields
148148
public :: hist_addfld2d ! Add a 2d multi-level field to the list of all history fields
149149
public :: hist_addfld_decomp ! Add a 1d/2d field based on patch or column data
150-
public :: hist_add_subscript ! Add a 2d subscript dimension
150+
151151

152152
public :: hist_printflds ! Print summary of list of all history fields
153153
public :: htapes_fieldlist ! Finalize history file field lists, intersecting allhistfldlist with
@@ -196,10 +196,6 @@ module histFileMod
196196
! is 255. But this can't be increased until all hard
197197
! coded values throughout the i/o stack are updated.
198198
integer, parameter :: max_chars = 199 ! max chars for char variables
199-
integer, parameter :: max_subs = 100 ! max number of subscripts
200-
integer :: num_subs = 0 ! actual number of subscripts
201-
character(len=32) :: subs_name(max_subs) ! name of subscript
202-
integer :: subs_dim(max_subs) ! dimension of subscript
203199

204200
! type2d value for a field without a level dimension. This value is important for the
205201
! following reasons (as of 2023-08-21):
@@ -2490,9 +2486,6 @@ subroutine htape_create (t, histrest)
24902486
! (although on the history file it will go 1:(nec+1) rather than 0:nec)
24912487
call ncd_defdim(lnfid, 'elevclas' , maxpatch_glc + 1, dimid)
24922488

2493-
do n = 1,num_subs
2494-
call ncd_defdim(lnfid, subs_name(n), subs_dim(n), dimid)
2495-
end do
24962489
call ncd_defdim(lnfid, 'string_length', hist_dim_name_length, strlen_dimid)
24972490
call ncd_defdim(lnfid, 'scale_type_string_length', scale_type_strlen, dimid)
24982491
call ncd_defdim( lnfid, 'levdcmp', nlevdecomp_full, dimid)
@@ -5940,31 +5933,6 @@ integer function next_history_pointer_index ()
59405933

59415934
end function next_history_pointer_index
59425935

5943-
!-----------------------------------------------------------------------
5944-
subroutine hist_add_subscript(name, dim)
5945-
!
5946-
! !DESCRIPTION:
5947-
! Add a history variable to the output history tape.
5948-
!
5949-
! !ARGUMENTS:
5950-
character(len=*), intent(in) :: name ! name of subscript
5951-
integer , intent(in) :: dim ! dimension of subscript
5952-
!
5953-
! !LOCAL VARIABLES:
5954-
character(len=*),parameter :: subname = 'hist_add_subscript'
5955-
!-----------------------------------------------------------------------
5956-
5957-
num_subs = num_subs + 1
5958-
if (num_subs > max_subs) then
5959-
write(iulog,*) trim(subname),' ERROR: ',&
5960-
' num_subs = ',num_subs,' greater than max_subs= ',max_subs
5961-
call endrun(msg=errMsg(sourcefile, __LINE__))
5962-
endif
5963-
subs_name(num_subs) = name
5964-
subs_dim(num_subs) = dim
5965-
5966-
end subroutine hist_add_subscript
5967-
59685936
!-----------------------------------------------------------------------
59695937

59705938
subroutine strip_null(str)

0 commit comments

Comments
 (0)