3 C$$$ SUBPROGRAM DOCUMENTATION BLOCK
6 C PRGMMR: WOOLLEN ORG: NP20 DATE: 1996-10-09
8 C ABSTRACT: THIS FUNCTION ADDS UP THE COMPLETE LENGTH OF THE DELAYED
9 C REPLICATION SEQUENCE BEGINNING AT INDEX N OF THE DATA SUBSET.
11 C PROGRAM HISTORY LOG:
12 C 1996-10-09 J. WOOLLEN -- ORIGINAL AUTHOR
13 C 1999-11-18 J. WOOLLEN -- THE NUMBER OF BUFR FILES WHICH CAN BE
14 C OPENED AT ONE TIME INCREASED FROM 10 TO 32
15 C (NECESSARY IN ORDER TO PROCESS MULTIPLE
16 C BUFR FILES UNDER THE MPI)
17 C 2003-11-04 S. BENDER -- ADDED REMARKS/BUFRLIB ROUTINE
19 C 2003-11-04 D. KEYSER -- MAXJL (MAXIMUM NUMBER OF JUMP/LINK ENTRIES)
20 C INCREASED FROM 15000 TO 16000 (WAS IN
21 C VERIFICATION VERSION); UNIFIED/PORTABLE FOR
22 C WRF; ADDED DOCUMENTATION (INCLUDING
23 C HISTORY) (INCOMPLETE)
24 C 2009-03-31 J. WOOLLEN -- ADDED DOCUMENTATION
26 C USAGE: NWORDS (N, LUN)
27 C INPUT ARGUMENT LIST:
28 C N - INTEGER: INDEX TO START OF DELAYED REPLICATION SEQUENCE
29 C LUN - INTEGER: I/O STREAM INDEX INTO INTERNAL MEMORY ARRAYS
31 C OUTPUT ARGUMENT LIST:
32 C NWORDS - INTEGER: COMPLETE LENGTH OF DELAYED REPLICATION
33 C SEQUENCE WITHIN DATA SUBSET
36 C THIS ROUTINE CALLS: None
37 C THIS ROUTINE IS CALLED BY: INVMRG
38 C Normally not called by any application
42 C LANGUAGE: FORTRAN 77
43 C MACHINE: PORTABLE TO ALL PLATFORMS
49 COMMON /USRINT
/ NVAL
(NFILES
),INV
(MAXSS
,NFILES
),VAL
(MAXSS
,NFILES
)
53 C-----------------------------------------------------------------------
54 C-----------------------------------------------------------------------
58 DO K
=1,NINT
(VAL
(N
,LUN
))
59 NWORDS
= NWORDS
+ NINT
(VAL
(NWORDS
+N
+1,LUN
))