NCEPLIBS-bufr  11.5.0
 All Data Structures Files Functions Variables Pages
nemtba.f
Go to the documentation of this file.
1 C> @file
2 C> @author WOOLLEN @date 1994-01-06
3 
4 C> THIS SUBROUTINE SEARCHES FOR MNEMONIC NEMO WITHIN THE
5 C> INTERNAL TABLE A ARRAYS HOLDING THE DICTIONARY TABLE (ARRAYS IN
6 C> MODULE TABABD) AND, IF FOUND, RETURNS INFORMATION ABOUT THAT
7 C> MNEMONIC FROM WITHIN THESE ARRAYS. IT IS IDENTICAL TO BUFR ARCHIVE
8 C> LIBRARY SUBROUTINE NEMTBAX EXCEPT THAT, IF NEMO IS NOT FOUND, THIS
9 C> SUBROUTINE MAKES AN APPROPRIATE CALL TO BUFR ARCHIVE LIBRARY
10 C> SUBROUTINE BORT.
11 C>
12 C> PROGRAM HISTORY LOG:
13 C> 1994-01-06 J. WOOLLEN -- ORIGINAL AUTHOR
14 C> 1995-06-28 J. WOOLLEN -- INCREASED THE SIZE OF INTERNAL BUFR TABLE
15 C> ARRAYS IN ORDER TO HANDLE BIGGER FILES
16 C> 1998-07-08 J. WOOLLEN -- REPLACED CALL TO CRAY LIBRARY ROUTINE
17 C> "ABORT" WITH CALL TO NEW INTERNAL BUFRLIB
18 C> ROUTINE "BORT"
19 C> 1999-11-18 J. WOOLLEN -- THE NUMBER OF BUFR FILES WHICH CAN BE
20 C> OPENED AT ONE TIME INCREASED FROM 10 TO 32
21 C> (NECESSARY IN ORDER TO PROCESS MULTIPLE
22 C> BUFR FILES UNDER THE MPI)
23 C> 2003-11-04 J. ATOR -- ADDED DOCUMENTATION
24 C> 2003-11-04 S. BENDER -- ADDED REMARKS/BUFRLIB ROUTINE
25 C> INTERDEPENDENCIES
26 C> 2003-11-04 D. KEYSER -- UNIFIED/PORTABLE FOR WRF; ADDED HISTORY
27 C> DOCUMENTATION; OUTPUTS MORE COMPLETE
28 C> DIAGNOSTIC INFO WHEN ROUTINE TERMINATES
29 C> ABNORMALLY
30 C> 2009-05-07 J. ATOR -- USE NEMTBAX
31 C>
32 C> USAGE: CALL NEMTBA (LUN, NEMO, MTYP, MSBT, INOD)
33 C> INPUT ARGUMENT LIST:
34 C> LUN - INTEGER: I/O STREAM INDEX INTO INTERNAL MEMORY ARRAYS
35 C> NEMO - CHARACTER*(*): TABLE A MNEMONIC TO SEARCH FOR
36 C>
37 C> OUTPUT ARGUMENT LIST:
38 C> MTYP - INTEGER: MESSAGE TYPE CORRESPONDING TO NEMO
39 C> MSBT - INTEGER: MESSAGE SUBTYPE CORRESPONDING TO NEMO
40 C> INOD - INTEGER: POSITIONAL INDEX OF NEMO WITHIN INTERNAL
41 C> JUMP/LINK TABLE
42 C>
43 C> REMARKS:
44 C> THIS ROUTINE CALLS: BORT NEMTBAX
45 C> THIS ROUTINE IS CALLED BY: CMSGINI COPYMG CPYMEM LCMGDF
46 C> MSGINI OPENMB OPENMG
47 C> Normally not called by any application
48 C> programs.
49 C>
50  SUBROUTINE nemtba(LUN,NEMO,MTYP,MSBT,INOD)
51 
52  CHARACTER*(*) nemo
53  CHARACTER*128 bort_str
54 
55 C-----------------------------------------------------------------------
56 C-----------------------------------------------------------------------
57 
58 C LOOK FOR NEMO IN TABLE A
59 C ------------------------
60 
61  CALL nemtbax(lun,nemo,mtyp,msbt,inod)
62  IF(inod.EQ.0) goto 900
63 
64 C EXITS
65 C -----
66 
67  RETURN
68 900 WRITE(bort_str,'("BUFRLIB: NEMTBA - CAN''T FIND MNEMONIC ",A)')
69  . nemo
70  CALL bort(bort_str)
71  END
subroutine nemtbax(LUN, NEMO, MTYP, MSBT, INOD)
THIS SUBROUTINE SEARCHES FOR MNEMONIC NEMO WITHIN THE INTERNAL TABLE A ARRAYS HOLDING THE DICTIONARY ...
Definition: nemtbax.f:40
subroutine bort(STR)
This subroutine calls subroutine errwrt() to log an error message, then calls subroutine bort_exit() ...
Definition: bort.f:23
subroutine nemtba(LUN, NEMO, MTYP, MSBT, INOD)
THIS SUBROUTINE SEARCHES FOR MNEMONIC NEMO WITHIN THE INTERNAL TABLE A ARRAYS HOLDING THE DICTIONARY ...
Definition: nemtba.f:50