@@ -147,7 +147,7 @@ module histFileMod
147
147
public :: hist_addfld1d ! Add a 1d single-level field to the list of all history fields
148
148
public :: hist_addfld2d ! Add a 2d multi-level field to the list of all history fields
149
149
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
+
151
151
152
152
public :: hist_printflds ! Print summary of list of all history fields
153
153
public :: htapes_fieldlist ! Finalize history file field lists, intersecting allhistfldlist with
@@ -196,10 +196,6 @@ module histFileMod
196
196
! is 255. But this can't be increased until all hard
197
197
! coded values throughout the i/o stack are updated.
198
198
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
203
199
204
200
! type2d value for a field without a level dimension. This value is important for the
205
201
! following reasons (as of 2023-08-21):
@@ -2490,9 +2486,6 @@ subroutine htape_create (t, histrest)
2490
2486
! (although on the history file it will go 1:(nec+1) rather than 0:nec)
2491
2487
call ncd_defdim(lnfid, ' elevclas' , maxpatch_glc + 1 , dimid)
2492
2488
2493
- do n = 1 ,num_subs
2494
- call ncd_defdim(lnfid, subs_name(n), subs_dim(n), dimid)
2495
- end do
2496
2489
call ncd_defdim(lnfid, ' string_length' , hist_dim_name_length, strlen_dimid)
2497
2490
call ncd_defdim(lnfid, ' scale_type_string_length' , scale_type_strlen, dimid)
2498
2491
call ncd_defdim( lnfid, ' levdcmp' , nlevdecomp_full, dimid)
@@ -5940,31 +5933,6 @@ integer function next_history_pointer_index ()
5940
5933
5941
5934
end function next_history_pointer_index
5942
5935
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
-
5968
5936
!- ----------------------------------------------------------------------
5969
5937
5970
5938
subroutine strip_null (str )
0 commit comments