NCEPLIBS-bufr  11.5.0
 All Data Structures Files Functions Variables Pages
cpmstabs.c File Reference

Copy master Table B and Table D information from Fortran arrays to C arrays within internal memory. More...

#include "bufrlib.h"
#include "mstabs.h"

Go to the source code of this file.

Functions

void cpmstabs (f77int *pnmtb, f77int *pibfxyn, char(*pcbscl)[4], char(*pcbsref)[12], char(*pcbbw)[4], char(*pcbunit)[14], char(*pcbmnem)[8], char(*pcbelem)[120], f77int *pnmtd, f77int *pidfxyn, char(*pcdseq)[120], char(*pcdmnem)[8], f77int *pndelem, f77int *pidefxy, f77int *maxcd)
 This subroutine copies relevant information from the Fortran module MODA_MSTABS arrays to new arrays within C, for use whenever arrays are dynamically allocated at run time and in which case we can't directly access the Fortran module MODA_MSTABS arrays from within C. More...
 

Detailed Description

Copy master Table B and Table D information from Fortran arrays to C arrays within internal memory.

Definition in file cpmstabs.c.

Function Documentation

void cpmstabs ( f77int *  pnmtb,
f77int *  pibfxyn,
char(*)  pcbscl[4],
char(*)  pcbsref[12],
char(*)  pcbbw[4],
char(*)  pcbunit[14],
char(*)  pcbmnem[8],
char(*)  pcbelem[120],
f77int *  pnmtd,
f77int *  pidfxyn,
char(*)  pcdseq[120],
char(*)  pcdmnem[8],
f77int *  pndelem,
f77int *  pidefxy,
f77int *  maxcd 
)

This subroutine copies relevant information from the Fortran module MODA_MSTABS arrays to new arrays within C, for use whenever arrays are dynamically allocated at run time and in which case we can't directly access the Fortran module MODA_MSTABS arrays from within C.

Author
J. Ator
Date
2014-12-04
Parameters
[in]pnmtb- f77int*: Number of master Table B entries
[in]pibfxyn- f77int*: Bitwise representations of master Table B FXY numbers
[in]pcbscl- char(*)[4]: Master Table B scale factors
[in]pcbsref- char(*)[12]: Master Table B reference values
[in]pcbbw- char(*)[4]: Master Table B bit widths
[in]pcbunit- char(*)[14]: Master Table B units
[in]pcbmnem- char(*)[8]: Master Table B mnemonics
[in]pcbelem- char(*)[120]: Master Table B element names
[in]pnmtd- f77int*: Number of master Table D entries
[in]pidfxyn- f77int*: Bitwise representations of master Table D FXY numbers
[in]pcdseq- char(*)[120]: Master Table D sequence names
[in]pcdmnem- char(*)[8]: Master Table D mnemonics
[in]pndelem- f77int*: Number of child descriptors for master Table D sequence
[in]pidefxy- f77int*: Bitwise representations of child descriptors for master Table D sequence
[in]maxcd- f77int*: Maximum number of child descriptors for a master Table D sequence

Program history log:

  • 2014-12-04 J. Ator – Original author

Definition at line 44 of file cpmstabs.c.

References icvidx().

Referenced by ireadmt().