Skip to content

Commit

Permalink
Delete orphaned variables IBUFLENS and IBUFLENR
Browse files Browse the repository at this point in the history
These variables were used for determining whether to allocate ZCOMBUFS and ZCOMBUFR back before TRGTOL was split into TRGTOL_PROLOG and TRGTOL_COMM. Now they have no purpose.
  • Loading branch information
samhatfield authored and wdeconinck committed Dec 1, 2023
1 parent f83ba32 commit cc2b441
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/trans/internal/trgtol_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ SUBROUTINE TRGTOL_PROLOG(KF_FS,KF_GP,KVSET,&

INTEGER(KIND=JPIM) :: IGPTRRECV(NPRTRNS)
INTEGER(KIND=JPIM) :: IFIRSTLAT, IGL, IGLL, ILASTLAT, JROC, IPOS, ISETB, ISETA
INTEGER(KIND=JPIM) :: ISETV, J, JFLD, JGL, JL, ISETW, INDOFFX,IBUFLENS,IBUFLENR
INTEGER(KIND=JPIM) :: ISETV, J, JFLD, JGL, JL, ISETW, INDOFFX

! ------------------------------------------------------------------

Expand All @@ -189,8 +189,6 @@ SUBROUTINE TRGTOL_PROLOG(KF_FS,KF_GP,KVSET,&
CALL INIGPTR(KGPTRSEND,IGPTRRECV)

INDOFFX = 0
IBUFLENS = 0
IBUFLENR = 0
KNRECV = 0
KNSEND = 0

Expand All @@ -206,7 +204,6 @@ SUBROUTINE TRGTOL_PROLOG(KF_FS,KF_GP,KVSET,&
KSENDTOT(JROC) = IGPTRRECV(ISETW)*IPOS

IF( JROC /= MYPROC) THEN
IBUFLENS = MAX(IBUFLENS,KSENDTOT(JROC))
IF(KSENDTOT(JROC) > 0) THEN
KNSEND = KNSEND+1
KSEND(KNSEND)=JROC
Expand All @@ -227,7 +224,6 @@ SUBROUTINE TRGTOL_PROLOG(KF_FS,KF_GP,KVSET,&
KNRECV = KNRECV + 1
KRECV(KNRECV)=JROC
ENDIF
IF( JROC /= MYPROC) IBUFLENR = MAX(IBUFLENR,KRECVTOT(JROC))

IF(IPOS > 0) THEN
KNDOFF(JROC) = INDOFFX
Expand Down

0 comments on commit cc2b441

Please sign in to comment.