SUBROUTINE DIAG_MISC_ISBA_NP_INIT(YNDIAG_MISC_ISBA,KPATCH)
TYPE(DIAG_MISC_ISBA_NP_t), INTENT(INOUT) :: YNDIAG_MISC_ISBA
INTEGER, INTENT(IN) :: KPATCH
INTEGER :: JP
REAL(KIND=JPRB) :: ZHOOK_HANDLE
IF (LHOOK) CALL DR_HOOK("MODD_DIAG_MISC_ISBA_N:DIAG_MISC_ISBA_NP_INIT",0,ZHOOK_HANDLE)
IF (.NOT.ASSOCIATED(YNDIAG_MISC_ISBA%AL)) THEN
ALLOCATE(YNDIAG_MISC_ISBA%AL(KPATCH))
DO JP=1,KPATCH
CALL DIAG_MISC_ISBA_INIT(YNDIAG_MISC_ISBA%AL(JP))
ENDDO
ELSE
DO JP=1,KPATCH
CALL DIAG_MISC_ISBA_INIT(YNDIAG_MISC_ISBA%AL(JP))
ENDDO
DEALLOCATE(YNDIAG_MISC_ISBA%AL)
ENDIF
IF (LHOOK) CALL DR_HOOK("MODD_DIAG_MISC_ISBA_N:DIAG_MISC_ISBA_NP_INIT",1,ZHOOK_HANDLE)
END SUBROUTINE DIAG_MISC_ISBA_NP_INIT