File: CLOG_cput.4

package info (click to toggle)
mpich 1.1.0-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 22,116 kB
  • ctags: 27,349
  • sloc: ansic: 193,435; sh: 11,172; fortran: 6,545; makefile: 5,801; cpp: 5,020; tcl: 3,548; asm: 3,536; csh: 1,079; java: 614; perl: 183; awk: 168; sed: 70; f90: 62
file content (33 lines) | stat: -rw-r--r-- 1,177 bytes parent folder | download | duplicates (2)
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
.TH CLOG_cput 4 "4/9/1997" " " "MPE"
.SH NAME
CLOG_cput \-  move a log record from one of the input buffers to the output 
.SH SYNOPSIS
.nf
#include <stdio.h>
#include "mpe.h"
void CLOG_cput( ptr )
double **ptr;
.fi
This function moves records from one of the three buffers being merged into
the output buffer.  When the output buffer is filled, it is sent to the
parent.  A separate output routine handles output on the root.  If the input
buffer is emptied (endblock record is read) and corresponds to a child, a new
buffer is received from the child.  When an endlog record is read on the input
buffer, the number of sources is decremented and the time is set to positive
infinity so that the empty input source will never have the lowest time.

At entry we assume that *p is pointing to a log record that is not an
end-of-block record, and that outbuf is pointing to a buffer that has
room in it for the record.  We ensure that these conditions are met on
exit as well, by sending (or writing, if we are the root) and receiving
blocks as necessary.

Input parameters

.PD 0
.TP
.B pointer to the record to be moved into the output buffer
- 
.PD 1
.SH LOCATION
clog_merge.c