Skip to content

Commit 67e2d57

Browse files
committed
added CVMix surface and bottom boundary layer depth
1 parent 24510e9 commit 67e2d57

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

src/gotm/register_all_variables.F90

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ subroutine do_register_all_variables(lat,lon,nlev)
7373
call register_stream_variables(nlev)
7474
#endif
7575
call register_turbulence_variables(nlev)
76+
#ifdef _CVMIX_
77+
call register_cvmix_variables(nlev)
78+
#endif
7679
call register_diagnostic_variables(nlev)
7780
! LEVEL2 'registrated ',N,'variables'
7881
return
@@ -579,6 +582,38 @@ subroutine register_turbulence_variables(nlev)
579582
end subroutine register_turbulence_variables
580583
!EOC
581584

585+
#ifdef _CVMIX_
586+
!-----------------------------------------------------------------------
587+
!BOP
588+
!
589+
! !IROUTINE: seagrass variable registration
590+
!
591+
! !INTERFACE:
592+
subroutine register_cvmix_variables(nlev)
593+
!
594+
! !DESCRIPTION:
595+
!
596+
! !USES:
597+
use gotm_cvmix, only: zsbl,zbbl
598+
IMPLICIT NONE
599+
!
600+
! !INPUT PARAMETERS:
601+
integer, intent(in) :: nlev
602+
!
603+
! !LOCAL VARIABLES:
604+
!EOP
605+
!-----------------------------------------------------------------------
606+
!BOC
607+
608+
call fm%register('cvmix_zsbl', 'm', 'CVMix SBL depth (z-level)', data0d=zsbl,category='cvmix')
609+
call fm%register('cvmix_zbbl', 'm', 'CVMix BBL depth (z-level)', data0d=zbbl,category='cvmix')
610+
611+
end subroutine register_cvmix_variables
612+
!EOC
613+
#endif
614+
615+
616+
582617
!-----------------------------------------------------------------------
583618
!BOP
584619
!

0 commit comments

Comments
 (0)