NCEPLIBS-bufr 11.7.1
nwords.f
Go to the documentation of this file.
1C> @file
2C> @author WOOLLEN @date 1996-10-09
3
4C> THIS FUNCTION ADDS UP THE COMPLETE LENGTH OF THE DELAYED
5C> REPLICATION SEQUENCE BEGINNING AT INDEX N OF THE DATA SUBSET.
6C>
7C> PROGRAM HISTORY LOG:
8C> 1996-10-09 J. WOOLLEN -- ORIGINAL AUTHOR
9C> 1999-11-18 J. WOOLLEN -- THE NUMBER OF BUFR FILES WHICH CAN BE
10C> OPENED AT ONE TIME INCREASED FROM 10 TO 32
11C> (NECESSARY IN ORDER TO PROCESS MULTIPLE
12C> BUFR FILES UNDER THE MPI)
13C> 2003-11-04 S. BENDER -- ADDED REMARKS/BUFRLIB ROUTINE
14C> INTERDEPENDENCIES
15C> 2003-11-04 D. KEYSER -- MAXJL (MAXIMUM NUMBER OF JUMP/LINK ENTRIES)
16C> INCREASED FROM 15000 TO 16000 (WAS IN
17C> VERIFICATION VERSION); UNIFIED/PORTABLE FOR
18C> WRF; ADDED DOCUMENTATION (INCLUDING
19C> HISTORY) (INCOMPLETE)
20C> 2009-03-31 J. WOOLLEN -- ADDED DOCUMENTATION
21C> 2014-12-10 J. ATOR -- USE MODULES INSTEAD OF COMMON BLOCKS
22C>
23C> USAGE: NWORDS (N, LUN)
24C> INPUT ARGUMENT LIST:
25C> N - INTEGER: INDEX TO START OF DELAYED REPLICATION SEQUENCE
26C> LUN - INTEGER: I/O STREAM INDEX INTO INTERNAL MEMORY ARRAYS
27C>
28C> OUTPUT ARGUMENT LIST:
29C> NWORDS - INTEGER: COMPLETE LENGTH OF DELAYED REPLICATION
30C> SEQUENCE WITHIN DATA SUBSET
31C>
32C> REMARKS:
33C> THIS ROUTINE CALLS: None
34C> THIS ROUTINE IS CALLED BY: INVMRG
35C> Normally not called by any application
36C> programs.
37C>
38 FUNCTION nwords(N,LUN)
39
40 USE moda_usrint
41
42C-----------------------------------------------------------------------
43C-----------------------------------------------------------------------
44
45 nwords = 0
46
47 DO k=1,nint(val(n,lun))
48 nwords = nwords + nint(val(nwords+n+1,lun))
49 ENDDO
50
51 RETURN
52 END
function nwords(N, LUN)
THIS FUNCTION ADDS UP THE COMPLETE LENGTH OF THE DELAYED REPLICATION SEQUENCE BEGINNING AT INDEX N OF...
Definition: nwords.f:39