Commit b329bef5 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Rename backend initializer/finalizer functions.

parent 0c904682
......@@ -141,7 +141,7 @@ int pioFileOpen(const char *filename, const char *mode)
/***************************************************************/
void backendInit(void (*postCommSetupActions)(void))
void cdiPioFileWritingInit(void (*postCommSetupActions)(void))
{
int IOMode = commInqIOMode ();
......@@ -174,7 +174,7 @@ void backendInit(void (*postCommSetupActions)(void))
/***************************************************************/
void backendCleanup ( void )
void cdiPioFileWritingFinalize(void)
{
int IOMode = commInqIOMode ();
switch ( IOMode )
......
......@@ -10,8 +10,8 @@
#include "cdi_int.h"
void backendCleanup ( void );
void backendInit(void (*postCommSetupActions)(void));
void cdiPioFileWritingInit(void (*postCommSetupActions)(void));
void cdiPioFileWritingFinalize(void);
int pioFileOpen(const char *filename, const char *mode);
int pioFileClose ( int );
size_t cdiPioFileWrite(int fileID, const void *restrict buffer, size_t len,
......
......@@ -1050,7 +1050,7 @@ void cdiPioServer(void (*postCommSetupActions)(void))
xdebug("%s", "START");
backendInit(postCommSetupActions);
cdiPioFileWritingInit(postCommSetupActions);
if (commInqRankNode() == commInqSpecialRankNode())
return;
commCalc = commInqCommCalc ();
......@@ -1109,7 +1109,7 @@ void cdiPioServer(void (*postCommSetupActions)(void))
free ( resHs );
}
}
backendCleanup();
cdiPioFileWritingFinalize();
serverWinCleanup();
#ifdef HAVE_PARALLEL_NC4
free(pioPrimes);
......
Markdown is supported
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