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

Remove now unused hasLocalFiles flag of namespace.

parent b030bbe0
......@@ -42,11 +42,9 @@ static int activeNamespace = 0;
struct namespace
{
int hasLocalFiles;
statusCode resStage;
void *switches[NUM_NAMESPACE_SWITCH];
} initialNamespace = {
.hasLocalFiles = 1,
.resStage = STAGE_DEFINITION,
.switches = defaultSwitches
};
......@@ -128,7 +126,7 @@ namespaceTuple_t namespaceResHDecode ( int resH )
}
int
namespaceNew(int hasLocalFiles)
namespaceNew()
{
int newNamespaceID = -1;
NAMESPACE_LOCK();
......@@ -167,7 +165,6 @@ namespaceNew(int hasLocalFiles)
}
xassert(newNamespaceID >= 0 && newNamespaceID < NUM_NAMESPACES);
++nNamespaces;
namespaces[newNamespaceID].hasLocalFiles = hasLocalFiles;
namespaces[newNamespaceID].resStage = STAGE_DEFINITION;
memcpy(namespaces[newNamespaceID].switches,
(void *[NUM_NAMESPACE_SWITCH])defaultSwitches,
......@@ -219,15 +216,6 @@ int namespaceGetActive ()
return activeNamespace;
}
int namespaceHasLocalFile ( int nId )
{
xassert(nId < namespacesSize && nId >= 0);
return namespaces ? namespaces[nId].hasLocalFiles : 0;
}
int namespaceAdaptKey ( int key, int nspTarget )
{
namespaceTuple_t tin;
......
......@@ -45,7 +45,7 @@ enum namespaceSwitch
};
int namespaceNew(int hasLocalFiles);
int namespaceNew();
void namespaceDelete(int namespaceID);
void namespaceCleanup ( void );
int namespaceGetNumber ( void );
......@@ -53,7 +53,6 @@ int namespaceGetActive ( void );
int namespaceIdxEncode ( namespaceTuple_t );
int namespaceIdxEncode2 ( int, int );
namespaceTuple_t namespaceResHDecode ( int );
int namespaceHasLocalFile ( int );
int namespaceAdaptKey ( int, int );
int namespaceAdaptKey2 ( int );
void namespaceDefResStatus ( statusCode );
......
......@@ -150,7 +150,7 @@ cdiPioClientSetup(int *pioNamespace_, int *pioNamespace)
{
commEvalPhysNodes ();
commDefCommsIO ();
*pioNamespace_ = *pioNamespace = namespaceNew(0);
*pioNamespace_ = *pioNamespace = namespaceNew();
int callerCDINamespace = namespaceGetActive();
pioNamespaceSetActive(*pioNamespace_);
serializeSetMPI();
......
......@@ -738,7 +738,7 @@ pioInit(MPI_Comm commGlob, int nProcsIO, int IOMode,
// JUST FOR TEST CASES WITH ONLY ONE MPI TASK
if ( commInqSizeGlob () == 1 )
{
pioNamespace_ = *pioNamespace = namespaceNew(0);
pioNamespace_ = *pioNamespace = namespaceNew();
return commInqCommGlob ();
}
......
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