Skip to content
Snippets Groups Projects
Commit 9f4077a5 authored by Anna Wellmann's avatar Anna Wellmann
Browse files

Remove old functins for writing send nodes to file

parent 4dcbc9d4
No related branches found
No related tags found
1 merge request!104Add Communication Hiding to GPU version
...@@ -290,41 +290,6 @@ void FileWriter::writeUnstrucuredGridLT(std::shared_ptr<Parameter> para, int lev ...@@ -290,41 +290,6 @@ void FileWriter::writeUnstrucuredGridLT(std::shared_ptr<Parameter> para, int lev
} }
} }
void FileWriter::testForSendNodeX(std::shared_ptr<Parameter> &para, int level, unsigned int pos, int &sendNode)
{
testForCommunicationNode(para, level, pos, sendNode, &para->getParH(level)->sendProcessNeighborX,
&para->getParH(level)->sendProcessNeighborsAfterFtoCX);
}
void FileWriter::testForSendNodeY(std::shared_ptr<Parameter> &para, int level, unsigned int pos, int &sendNode)
{
testForCommunicationNode(para, level, pos, sendNode, &para->getParH(level)->sendProcessNeighborY,
&para->getParH(level)->sendProcessNeighborsAfterFtoCY);
}
void FileWriter::testForSendNodeZ(std::shared_ptr<Parameter> &para, int level, unsigned int pos, int &sendNode)
{
testForCommunicationNode(para, level, pos, sendNode, &para->getParH(level)->sendProcessNeighborZ,
&para->getParH(level)->sendProcessNeighborsAfterFtoCZ);
}
void FileWriter::testForCommunicationNode(std::shared_ptr<Parameter> &para, int level, unsigned int pos, int &sendNode,
std::vector<PN27> *sendOrRecvProcessNeighbor,
std::vector<PN27> *sendOrRecvProcessNeighborAfterFtoC)
{
for (uint direction = 0; direction < (uint)sendOrRecvProcessNeighbor->size(); direction++) {
for (int i = 0; i < (*sendOrRecvProcessNeighbor)[direction].numberOfNodes; i++) {
if (pos == (uint)(*sendOrRecvProcessNeighbor)[direction].index[i]) {
sendNode = 1;
if (level < para->getMaxLevel() && i < (*sendOrRecvProcessNeighborAfterFtoC)[direction].numberOfNodes) {
sendNode = 2;
}
return;
}
}
}
}
void FileWriter::writeUnstrucuredGridLTConc(std::shared_ptr<Parameter> para, int level, std::vector<std::string >& fname) void FileWriter::writeUnstrucuredGridLTConc(std::shared_ptr<Parameter> para, int level, std::vector<std::string >& fname)
{ {
std::vector< UbTupleFloat3 > nodes; std::vector< UbTupleFloat3 > nodes;
......
...@@ -26,12 +26,6 @@ private: ...@@ -26,12 +26,6 @@ private:
//void VIRTUALFLUIDS_GPU_EXPORT writeParticle(Parameter* para, unsigned int t); //void VIRTUALFLUIDS_GPU_EXPORT writeParticle(Parameter* para, unsigned int t);
void VIRTUALFLUIDS_GPU_EXPORT writeUnstrucuredGridLT(std::shared_ptr<Parameter> para, int level, void VIRTUALFLUIDS_GPU_EXPORT writeUnstrucuredGridLT(std::shared_ptr<Parameter> para, int level,
std::vector<std::string> &fname); std::vector<std::string> &fname);
void testForSendNodeX(std::shared_ptr<Parameter> &para, int level, unsigned int pos, int &sendNode);
void testForSendNodeY(std::shared_ptr<Parameter> &para, int level, unsigned int pos, int &sendNode);
void testForSendNodeZ(std::shared_ptr<Parameter> &para, int level, unsigned int pos, int &sendNode);
void testForCommunicationNode(std::shared_ptr<Parameter> &para, int level, unsigned int pos, int &sendNode,
std::vector<PN27> *sendOrRecvProcessNeighbor,
std::vector<PN27> *sendOrRecvProcessNeighborAfterFtoC);
void VIRTUALFLUIDS_GPU_EXPORT writeUnstrucuredGridLTConc(std::shared_ptr<Parameter> para, int level, std::vector<std::string >& fname); void VIRTUALFLUIDS_GPU_EXPORT writeUnstrucuredGridLTConc(std::shared_ptr<Parameter> para, int level, std::vector<std::string >& fname);
void VIRTUALFLUIDS_GPU_EXPORT writeUnstrucuredGridMedianLT(std::shared_ptr<Parameter> para, int level, std::vector<std::string >& fname); void VIRTUALFLUIDS_GPU_EXPORT writeUnstrucuredGridMedianLT(std::shared_ptr<Parameter> para, int level, std::vector<std::string >& fname);
void VIRTUALFLUIDS_GPU_EXPORT writeUnstrucuredGridMedianLTConc(std::shared_ptr<Parameter> para, int level, std::vector<std::string >& fname); void VIRTUALFLUIDS_GPU_EXPORT writeUnstrucuredGridMedianLTConc(std::shared_ptr<Parameter> para, int level, std::vector<std::string >& fname);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment