From f51a7d4f7dac1f4fa765b75910bf2a8cdd120504 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 27 Oct 2021 12:09:23 -0400 Subject: [PATCH] Correct a longstanding error in values of "nw()" returned by subroutine split77(). --- lib/77bit/packjt77.f90 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/77bit/packjt77.f90 b/lib/77bit/packjt77.f90 index b8a4ac424..9bd60f05d 100644 --- a/lib/77bit/packjt77.f90 +++ b/lib/77bit/packjt77.f90 @@ -824,7 +824,9 @@ subroutine split77(msg,nwords,nw,w) iz=j !Message length nwords=k !Number of words in msg if(nwords.le.0) go to 900 - nw(k)=len(trim(w(k))) + do i=1,nwords + nw(i)=len(trim(w(i))) + enddo msg(iz+1:)=' ' if(nwords.lt.3) go to 900 call chkcall(w(3),bcall_1,ok1) @@ -833,7 +835,7 @@ subroutine split77(msg,nwords,nw,w) w(2:12)=w(3:13) !Move all remaining words down by one nwords=nwords-1 endif - + 900 return end subroutine split77