SUBROUTINE CH_ISBA_NP_INIT(YCH_ISBA_NP,KPATCH)
TYPE(CH_ISBA_NP_t), INTENT(INOUT) :: YCH_ISBA_NP
INTEGER, INTENT(IN) :: KPATCH
INTEGER :: JP
REAL(KIND=JPRB) :: ZHOOK_HANDLE
IF (LHOOK) CALL DR_HOOK("MODD_CH_ISBA_N:CH_ISBA_NP_INIT",0,ZHOOK_HANDLE)
!
IF (ASSOCIATED(YCH_ISBA_NP%AL)) THEN
DO JP = 1,KPATCH
CALL CH_ISBA_INIT(YCH_ISBA_NP%AL(JP))
ENDDO
DEALLOCATE(YCH_ISBA_NP%AL)
ELSE
ALLOCATE(YCH_ISBA_NP%AL(KPATCH))
DO JP = 1,KPATCH
CALL CH_ISBA_INIT(YCH_ISBA_NP%AL(JP))
ENDDO
ENDIF
!
IF (LHOOK) CALL DR_HOOK("MODD_CH_ISBA_N:CH_ISBA_NP_INIT",1,ZHOOK_HANDLE)
END SUBROUTINE CH_ISBA_NP_INIT