SUBROUTINE DIAG_MISC_TEB_NP_INIT(YNDIAG_MISC_TEB,KPATCH)
TYPE(DIAG_MISC_TEB_NP_t), INTENT(INOUT) :: YNDIAG_MISC_TEB
INTEGER, INTENT(IN) :: KPATCH
INTEGER :: JP
REAL(KIND=JPRB) :: ZHOOK_HANDLE
IF (LHOOK) CALL DR_HOOK("MODD_DIAG_MISC_TEB_N:DIAG_MISC_TEB_NP_INIT",0,ZHOOK_HANDLE)
IF (.NOT.ASSOCIATED(YNDIAG_MISC_TEB%AL)) THEN
ALLOCATE(YNDIAG_MISC_TEB%AL(KPATCH))
DO JP=1,KPATCH
CALL DIAG_MISC_TEB_INIT(YNDIAG_MISC_TEB%AL(JP))
ENDDO
ELSE
DO JP=1,KPATCH
CALL DIAG_MISC_TEB_INIT(YNDIAG_MISC_TEB%AL(JP))
ENDDO
DEALLOCATE(YNDIAG_MISC_TEB%AL)
ENDIF
IF (LHOOK) CALL DR_HOOK("MODD_DIAG_MISC_TEB_N:DIAG_MISC_TEB_NP_INIT",1,ZHOOK_HANDLE)
END SUBROUTINE DIAG_MISC_TEB_NP_INIT