Skip to content

Commit 24510e9

Browse files
committed
removed rarely used EXTRA_OUTPUT
1 parent f5390e2 commit 24510e9

4 files changed

Lines changed: 1 addition & 109 deletions

File tree

src/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ endif()
4444
if(GOTM_USE_SEAGRASS)
4545
add_definitions(-D_SEAGRASS_)
4646
endif()
47-
if(GOTM_EXTRA_OUTPUT)
48-
add_definitions(-DEXTRA_OUTPUT)
49-
endif()
5047

5148
# ----------------------------
5249
# Targets

src/gotm/register_all_variables.F90

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,6 @@ subroutine register_meanflow_variables(nlev)
477477
call field%attributes%set('axis', 'Z')
478478
call fm%register('h', 'm', 'layer thickness', standard_name='cell_thickness', dimensions=(/id_dim_z/), data1d=h(1:nlev),category='column_structure',part_of_state=.true.)
479479
call fm%register('ho', 'm', 'layer thickness - old time step', standard_name='cell_thickness', dimensions=(/id_dim_z/), data1d=h(1:nlev),category='column_structure', part_of_state=.true., output_level=output_level_debug)
480-
#ifdef EXTRA_OUTPUT
481-
call fm%register('mean1', '??', '1. mean dummy variable', standard_name='??', dimensions=(/id_dim_z/), data1d=mean1(1:nlev),category='meanflow',output_level=output_level_debug)
482-
call fm%register('mean2', '??', '2. mean dummy variable', standard_name='??', dimensions=(/id_dim_z/), data1d=mean2(1:nlev),category='meanflow',output_level=output_level_debug)
483-
call fm%register('mean3', '??', '3. mean dummy variable', standard_name='??', dimensions=(/id_dim_z/), data1d=mean3(1:nlev),category='meanflow',output_level=output_level_debug)
484-
call fm%register('mean4', '??', '4. mean dummy variable', standard_name='??', dimensions=(/id_dim_z/), data1d=mean4(1:nlev),category='meanflow',output_level=output_level_debug)
485-
call fm%register('mean5', '??', '5. mean dummy variable', standard_name='??', dimensions=(/id_dim_z/), data1d=mean5(1:nlev),category='meanflow',output_level=output_level_debug)
486-
#endif
487480
#ifndef _ICE_
488481
call fm%register('Hice', 'm', 'fake ice thickness', standard_name='', data0d=Hice, category='surface')
489482
#endif
@@ -581,13 +574,7 @@ subroutine register_turbulence_variables(nlev)
581574
call fm%register('uu', 'm2/s2', 'variance of u-fluctuations', standard_name='??', dimensions=(/id_dim_zi/), data1d=uu(0:nlev),category='turbulence/shear')
582575
call fm%register('vv', 'm2/s2', 'variance of v-fluctuations', standard_name='??', dimensions=(/id_dim_zi/), data1d=vv(0:nlev),category='turbulence/shear')
583576
call fm%register('ww', 'm2/s2', 'variance of w-fluctuations', standard_name='??', dimensions=(/id_dim_zi/), data1d=ww(0:nlev),category='turbulence/shear')
584-
#ifdef EXTRA_OUTPUT
585-
call fm%register('turb1', '', '1. turbulence dummy variable', dimensions=(/id_dim_zi/), data1d=turb1(0:nlev),category='turbulence',output_level=output_level_debug)
586-
call fm%register('turb2', '', '2. turbulence dummy variable', dimensions=(/id_dim_zi/), data1d=turb2(0:nlev),category='turbulence',output_level=output_level_debug)
587-
call fm%register('turb3', '', '3. turbulence dummy variable', dimensions=(/id_dim_zi/), data1d=turb3(0:nlev),category='turbulence',output_level=output_level_debug)
588-
call fm%register('turb4', '', '4. turbulence dummy variable', dimensions=(/id_dim_zi/), data1d=turb4(0:nlev),category='turbulence',output_level=output_level_debug)
589-
call fm%register('turb5', '', '5. turbulence dummy variable', dimensions=(/id_dim_zi/), data1d=turb5(0:nlev),category='turbulence',output_level=output_level_debug)
590-
#endif
577+
591578
return
592579
end subroutine register_turbulence_variables
593580
!EOC

src/meanflow/meanflow.F90

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,6 @@ module meanflow
8181
REALTYPE, public :: Hice
8282
#endif
8383

84-
# ifdef EXTRA_OUTPUT
85-
86-
! dummies for testing
87-
REALTYPE, public, dimension(:), allocatable :: mean1,mean2,mean3,mean4,mean5
88-
89-
# endif
90-
9184
! the 'meanflow' configuration
9285
REALTYPE, public :: h0b
9386
logical, public :: calc_bottom_stress
@@ -394,30 +387,6 @@ subroutine post_init_meanflow(nlev,latitude)
394387
if (rc /= 0) STOP 'init_meanflow: Error allocating (bioshade)'
395388
bioshade = _ONE_
396389

397-
# ifdef EXTRA_OUTPUT
398-
399-
allocate(mean1(0:nlev),stat=rc)
400-
if (rc /= 0) stop 'init_meanflow: Error allocating (mean1)'
401-
mean1 = _ZERO_
402-
403-
allocate(mean2(0:nlev),stat=rc)
404-
if (rc /= 0) stop 'init_meanflow: Error allocating (mean2)'
405-
mean2 = _ZERO_
406-
407-
allocate(mean3(0:nlev),stat=rc)
408-
if (rc /= 0) stop 'init_meanflow: Error allocating (mean3)'
409-
mean3 = _ZERO_
410-
411-
allocate(mean4(0:nlev),stat=rc)
412-
if (rc /= 0) stop 'init_meanflow: Error allocating (mean4)'
413-
mean4 = _ZERO_
414-
415-
allocate(mean5(0:nlev),stat=rc)
416-
if (rc /= 0) stop 'init_meanflow: Error allocating (mean5)'
417-
mean5 = _ZERO_
418-
419-
# endif
420-
421390
LEVEL2 'done.'
422391
return
423392
end subroutine post_init_meanflow
@@ -480,13 +449,6 @@ subroutine clean_meanflow()
480449
if (allocated(rad)) deallocate(rad)
481450
if (allocated(avh)) deallocate(avh)
482451
if (allocated(bioshade)) deallocate(bioshade)
483-
# ifdef EXTRA_OUTPUT
484-
if (allocated(mean1)) deallocate(mean1)
485-
if (allocated(mean2)) deallocate(mean2)
486-
if (allocated(mean3)) deallocate(mean3)
487-
if (allocated(mean4)) deallocate(mean4)
488-
if (allocated(mean5)) deallocate(mean5)
489-
# endif
490452
LEVEL2 'done.'
491453

492454
return
@@ -542,13 +504,6 @@ subroutine print_state_meanflow()
542504
if (allocated(fric)) LEVEL2 'fric',fric
543505
if (allocated(drag)) LEVEL2 'drag',drag
544506
if (allocated(bioshade)) LEVEL2 'bioshade',bioshade
545-
# ifdef EXTRA_OUTPUT
546-
if (allocated(mean1)) LEVEL2 'mean1',mean1
547-
if (allocated(mean2)) LEVEL2 'mean2',mean2
548-
if (allocated(mean3)) LEVEL2 'mean3',mean3
549-
if (allocated(mean4)) LEVEL2 'mean4',mean4
550-
if (allocated(mean5)) LEVEL2 'mean5',mean5
551-
# endif
552507

553508
LEVEL2 'meanflow configuration', &
554509
h0b,z0s_min,charnock,charnock_val,ddu,ddl, &

src/turbulence/turbulence.F90

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,6 @@ module turbulence
117117
! turbulent velocity variances
118118
REALTYPE, public, dimension(:), allocatable :: uu,vv,ww
119119

120-
# ifdef EXTRA_OUTPUT
121-
122-
! dummies for testing
123-
REALTYPE, public, dimension(:), allocatable :: turb1,turb2,turb3,turb4,turb5
124-
125-
# endif
126-
127120
! some additional constants
128121
REALTYPE, public :: cm0,cmsf,cde,rcm, b1
129122

@@ -1062,30 +1055,6 @@ subroutine post_init_turbulence(nlev)
10621055
if (rc /= 0) stop 'init_turbulence: Error allocating (ww)'
10631056
ww = _ZERO_
10641057

1065-
# ifdef EXTRA_OUTPUT
1066-
1067-
allocate(turb1(0:nlev),stat=rc)
1068-
if (rc /= 0) stop 'init_turbulence: Error allocating (turb1)'
1069-
turb1 = _ZERO_
1070-
1071-
allocate(turb2(0:nlev),stat=rc)
1072-
if (rc /= 0) stop 'init_turbulence: Error allocating (turb2)'
1073-
turb2 = _ZERO_
1074-
1075-
allocate(turb3(0:nlev),stat=rc)
1076-
if (rc /= 0) stop 'init_turbulence: Error allocating (turb3)'
1077-
turb3 = _ZERO_
1078-
1079-
allocate(turb4(0:nlev),stat=rc)
1080-
if (rc /= 0) stop 'init_turbulence: Error allocating (turb4)'
1081-
turb4 = _ZERO_
1082-
1083-
allocate(turb5(0:nlev),stat=rc)
1084-
if (rc /= 0) stop 'init_turbulence: Error allocating (turb5)'
1085-
turb5 = _ZERO_
1086-
1087-
# endif
1088-
10891058
LEVEL2 'done.'
10901059

10911060
if (turb_method .eq. no_model) then
@@ -4060,13 +4029,6 @@ subroutine clean_turbulence()
40604029
if (allocated(uu)) deallocate(uu)
40614030
if (allocated(vv)) deallocate(vv)
40624031
if (allocated(ww)) deallocate(ww)
4063-
# ifdef EXTRA_OUTPUT
4064-
if (allocated(turb1)) deallocate(turb1)
4065-
if (allocated(turb2)) deallocate(turb2)
4066-
if (allocated(turb3)) deallocate(turb3)
4067-
if (allocated(turb4)) deallocate(turb4)
4068-
if (allocated(turb5)) deallocate(turb5)
4069-
# endif
40704032
LEVEL2 'done.'
40714033

40724034
return
@@ -4112,15 +4074,6 @@ subroutine print_state_turbulence()
41124074
LEVEL2 'Rig',Rig
41134075
LEVEL2 'xRf',xRf
41144076
LEVEL2 'uu,vv,ww',uu,vv,ww
4115-
4116-
#ifdef EXTRA_OUTPUT
4117-
LEVEL2 'turb1',turb1
4118-
LEVEL2 'turb2',turb2
4119-
LEVEL2 'turb3',turb3
4120-
LEVEL2 'turb4',turb4
4121-
LEVEL2 'turb5',turb5
4122-
#endif
4123-
41244077
LEVEL2 'cm0,cmsf,cde,rcm, b1',cm0,cmsf,cde,rcm, b1
41254078
LEVEL2 'Prandtl0',Prandtl0
41264079
LEVEL2 'craig_m,sig_e0',craig_m,sig_e0

0 commit comments

Comments
 (0)