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