Commit dbd862b9 authored by Deike Kleberg's avatar Deike Kleberg
Browse files

renaming, declare some functions static

parent bbcb9a85
......@@ -13,7 +13,6 @@
#include "pio_util.h"
#ifdef USE_MPI
#include "cdi.h"
#include "pio_impl.h"
#endif
......@@ -282,7 +281,7 @@ void setPioCommunicator ( MPI_Comm *myComm, MPI_Comm commF2C, int *color,
/***************************************************************/
MPI_Comm bInit ( int ptype, MPI_Comm comm, int *color, int *nnodes )
MPI_Comm backendInit ( int ptype, MPI_Comm comm, int *color, int *nnodes )
{
int size, rank;
int collectingData = 1;
......@@ -367,7 +366,7 @@ MPI_Comm bInit ( int ptype, MPI_Comm comm, int *color, int *nnodes )
/***************************************************************/
void bFinalize ()
void backendFinalize ()
{
#ifdef USE_MPI
switch ( pioinfo->type )
......
......@@ -19,8 +19,8 @@ typedef struct{
MPI_Comm collectorComm;
}pioInfo;
MPI_Comm bInit ( int, MPI_Comm, int *, int * );
void bFinalize ( void );
MPI_Comm backendInit ( int, MPI_Comm, int *, int * );
void backendFinalize ( void );
int pioFileOpenW ( const char* );
int pioFileClose ( int );
size_t pioFileWrite ( int, int, const void*, size_t );
......
......@@ -9,9 +9,7 @@
#include <mpi.h>
void IOMapping ( int *, int *, int *, int, int *, int );
void pioBuffer ( int, int, const double *, int );
void pioServerFinalize ();
#endif
......
......@@ -105,7 +105,7 @@ void commsIOCleanup ()
/*****************************************************************************/
static
void streamUnpack ( char * unpackBuffer, int unpackBufferSize,
int * unpackBufferPos, int nspTarget, MPI_Comm comm )
{
......
......@@ -36,6 +36,7 @@ double ** getBuffer = NULL;
/************************************************************************/
static
void serverWinCleanup ()
{
int i;
......@@ -94,7 +95,8 @@ static
}
/************************************************************************/
static
void serverWinCreate ()
{
int ranks[1], i;
......@@ -125,6 +127,7 @@ static
/************************************************************************/
static
void writeVars ( int tsID, int vdate, int vtime )
{
int i;
......@@ -192,6 +195,7 @@ void writeVars ( int tsID, int vdate, int vtime )
/************************************************************************/
static
void getData ( int tsID, int vdate, int vtime )
{
int iAssert = 0, i;
......@@ -245,7 +249,7 @@ void IOServer ( MPI_Comm comm, int ptype )
xdebugComm ( &commCalc );
nfinished = 0;
commColl = bInit ( ptype, comm, &color, &nnodes );
commColl = backendInit ( ptype, comm, &color, &nnodes );
for ( ;; )
{
......@@ -268,7 +272,7 @@ void IOServer ( MPI_Comm comm, int ptype )
{
serverWinCleanup ();
arrayDestroy();
bFinalize();
backendFinalize();
return;
}
......
......@@ -33,7 +33,7 @@
#define MAXSTRING 256
#define ddebug 3
#define ddebug 1
#ifdef USE_MPI
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment