diff --git a/src/gpu/VirtualFluids_GPU/Output/FileWriter.cpp b/src/gpu/VirtualFluids_GPU/Output/FileWriter.cpp index ac1275397863b7a2f4d6d073509b616e84398f05..a86afac9982091eb1c12363568817c43f3d54116 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 a1712432ea016448cd5c41fe7778e674ea8b93b7..f0983b8987d85a21668d801e4b8c7260e118adf1 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);