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