SUBROUTINE SSO_NP_INIT(YSSO_NP,KPATCH)
TYPE(SSO_NP_t), INTENT(INOUT) :: YSSO_NP
INTEGER, INTENT(IN) :: KPATCH
INTEGER :: JP
REAL(KIND=JPRB) :: ZHOOK_HANDLE
IF (LHOOK) CALL DR_HOOK("MODD_SSO_N:SSO_NP_INIT",0,ZHOOK_HANDLE)
!
IF (ASSOCIATED(YSSO_NP%AL)) THEN
DO JP = 1,KPATCH
CALL SSO_INIT(YSSO_NP%AL(JP))
ENDDO
DEALLOCATE(YSSO_NP%AL)
ELSE
ALLOCATE(YSSO_NP%AL(KPATCH))
DO JP = 1,KPATCH
CALL SSO_INIT(YSSO_NP%AL(JP))
ENDDO
ENDIF
!
IF (LHOOK) CALL DR_HOOK("MODD_SSO_N:SSO_NP_INIT",1,ZHOOK_HANDLE)
END SUBROUTINE SSO_NP_INIT