File: PGADebugPrint.l

package info (click to toggle)
pgapack 1.1-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,344 kB
  • ctags: 1,786
  • sloc: ansic: 10,331; fortran: 2,985; sh: 486; makefile: 462; perl: 105
file content (68 lines) | stat: -rw-r--r-- 1,327 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.TH PGADebugPrint 3 "05/01/95" " " "PGAPack"
.SH NAME
PGADebugPrint \- Write debugging information
.SH INPUT PARAMETERS
.PD 0
.TP
ctx
- context variable
.PD 0
.TP
level
- a symbolic constant that maps to the type of print requested
(e.g., an entry or exit print).  Valid values are
PGA_DEBUG_ENTERED, PGA_DEBUG_EXIT, PGA_DEBUG_MALLOC,
PGA_DEBUG_PRINTVAR, PGA_DEBUG_SEND, and PGA_DEBUG_RECV.
.PD 0
.TP
funcname
- the name of the function that called this routine
.PD 0
.TP
msg
- message to print
.PD 0
.TP
datatype
- a symbolic constant that maps to the data type of the
parameter data.  Valid choices are PGA_INT, PGA_DOUBLE,
PGA_CHAR and PGA_VOID (no data).
.PD 0
.TP
data
- a pointer, whose contents will be interpreted based upon the
datatype parameter (or NULL, if PGA_VOID).
.PD 1
.SH OUTPUT PARAMETERS
.PD 0
.TP
none

.PD 1
.SH SYNOPSIS
.nf
#include "pgapack.h"
void  PGADebugPrint(ctx, level, funcname, msg, datatype, data)
PGAContext *ctx
int level
char *funcname
char *msg
int datatype
void *data
.fi
.SH LOCATION
debug.c
.SH EXAMPLE
.nf
Example:
If the debugging level includes printing variables (level 82), print the
value of the integer variable num as a debugging tool in the routine
Add2Nums

PGAContext *ctx;
int num;
:
PGADebugPrint(ctx, PGA_DEBUG_PRINTVAR, "Add2Nums", "num = ", PGA_INT,
(void *) &num);

.fi