From 9f4077a50d6f03d5d4695911bc40ae9a6bf09122 Mon Sep 17 00:00:00 2001 From: Anna Wellmann <a.wellmann@tu-bs.de> Date: Mon, 2 May 2022 08:39:26 +0200 Subject: [PATCH] Remove old functins for writing send nodes to file --- .../VirtualFluids_GPU/Output/FileWriter.cpp | 35 ------------------- src/gpu/VirtualFluids_GPU/Output/FileWriter.h | 6 ---- 2 files changed, 41 deletions(-) diff --git a/src/gpu/VirtualFluids_GPU/Output/FileWriter.cpp b/src/gpu/VirtualFluids_GPU/Output/FileWriter.cpp index ac1275397..a86afac99 100644 --- a/src/gpu/VirtualFluids_GPU/Output/FileWriter.cpp +++ b/src/gpu/VirtualFluids_GPU/Output/FileWriter.cpp @@ -290,41 +290,6 @@ void FileWriter::writeUnstrucuredGridLT(std::shared_ptr<Parameter> para, int lev } } -void FileWriter::testForSendNodeX(std::shared_ptr<Parameter> ¶, int level, unsigned int pos, int &sendNode) -{ - testForCommunicationNode(para, level, pos, sendNode, ¶->getParH(level)->sendProcessNeighborX, - ¶->getParH(level)->sendProcessNeighborsAfterFtoCX); -} - -void FileWriter::testForSendNodeY(std::shared_ptr<Parameter> ¶, int level, unsigned int pos, int &sendNode) -{ - testForCommunicationNode(para, level, pos, sendNode, ¶->getParH(level)->sendProcessNeighborY, - ¶->getParH(level)->sendProcessNeighborsAfterFtoCY); -} - -void FileWriter::testForSendNodeZ(std::shared_ptr<Parameter> ¶, int level, unsigned int pos, int &sendNode) -{ - testForCommunicationNode(para, level, pos, sendNode, ¶->getParH(level)->sendProcessNeighborZ, - ¶->getParH(level)->sendProcessNeighborsAfterFtoCZ); -} - -void FileWriter::testForCommunicationNode(std::shared_ptr<Parameter> ¶, 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) { std::vector< UbTupleFloat3 > nodes; diff --git a/src/gpu/VirtualFluids_GPU/Output/FileWriter.h b/src/gpu/VirtualFluids_GPU/Output/FileWriter.h index a1712432e..f0983b898 100644 --- a/src/gpu/VirtualFluids_GPU/Output/FileWriter.h +++ b/src/gpu/VirtualFluids_GPU/Output/FileWriter.h @@ -26,12 +26,6 @@ private: //void VIRTUALFLUIDS_GPU_EXPORT writeParticle(Parameter* para, unsigned int t); void VIRTUALFLUIDS_GPU_EXPORT writeUnstrucuredGridLT(std::shared_ptr<Parameter> para, int level, std::vector<std::string> &fname); - void testForSendNodeX(std::shared_ptr<Parameter> ¶, int level, unsigned int pos, int &sendNode); - void testForSendNodeY(std::shared_ptr<Parameter> ¶, int level, unsigned int pos, int &sendNode); - void testForSendNodeZ(std::shared_ptr<Parameter> ¶, int level, unsigned int pos, int &sendNode); - void testForCommunicationNode(std::shared_ptr<Parameter> ¶, 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 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); -- GitLab