Hello, I also need to put more than 100 sources in my domain, and I try to modified the code as you have done as follows:
1) Changing value of MAXKEY and MAXSCE as 2000 in "declarations_telemac2d.f"
2)Adapt the function DEBSCE in order to deal with more than 99, and modified it in the "debsce.f" as follows:
IF(OK(I).AND.T2D_FILES(T2DVEF)%NAME(1:1).NE.' ') THEN
!
! FCT WILL BE Q(1), Q(2), ETC, Q(99), DEPENDING ON I
FCT='Q( '
IF(I.LT.10) THEN
WRITE(FCT(3:3),FMT='(I1)') I
FCT(4:4)=')'
ELSEIF(I.LT.100) THEN
WRITE(FCT(3:4),FMT='(I2)') I
FCT(5:5)=')'
ELSEIF(I.LT.2000) THEN
WRITE(FCT(3:5),FMT='(I2)') I
FCT(6:6)=')'
ELSE
WRITE(LU,*) 'DEBSCE NOT PROGRAMMED FOR MORE THAN 1999 SOURCES'
CALL PLANTE(1)
STOP
ENDIF
CALL READ_FIC_SOURCES(DEBSCE1,FCT,AT-DT,T2D_FILES(T2DVEF)%LU,
& ENTET,OK(I))
CALL READ_FIC_SOURCES(DEBSCE2,FCT,AT ,T2D_FILES(T2DVEF)%LU,
& ENTET,OK(I))
DEBSCE=(DEBSCE1+DEBSCE2)*0.5D0
!
ENDIF
however,it doesn,t work, could you please share you successful experiences? Thank you very much!