From 51a69adae8d48730357b8a8ac8a67248e4c60dd9 Mon Sep 17 00:00:00 2001 From: Anna Wellmann <a.wellmann@tu-braunschweig.de> Date: Tue, 21 Sep 2021 12:56:06 +0200 Subject: [PATCH] Add logger to the method that reorders send and receive indices --- .../grid/GridBuilder/LevelGridBuilder.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp b/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp index f84b7bc67..59b304d5a 100644 --- a/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp +++ b/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp @@ -270,6 +270,13 @@ GRIDGENERATOR_EXPORT void LevelGridBuilder::reorderSendIndexForCommAfterFtoC(int uint* iCellFCCBorder, uint sizeOfICellFCCBorder, int direction, int level) { + *logging::out << logging::Logger::INFO_INTERMEDIATE << "reorder send indices for communication after fine to coarse " << "\n"; + if (sizeOfICellFCCBorder == 0) + *logging::out << logging::Logger::LOGGER_ERROR + << "reorderSendIndexForCommAfterFtoC(): iCellFCCBorder needs to be inititalized before calling " + "this function " + << "\n"; + uint numberOfIndices = getNumberOfSendIndices(direction, level); int sparseIndexSend; bool isInICellFCCBorder; @@ -309,6 +316,13 @@ GRIDGENERATOR_EXPORT void LevelGridBuilder::reorderRecvIndexForCommAfterFtoC(int uint *iCellFCCBorder, uint sizeOfICellFCCBorder, int direction, int level) { + *logging::out << logging::Logger::INFO_INTERMEDIATE << "reorder receive indices for communication after fine to coarse " << "\n"; + if (sizeOfICellFCCBorder == 0) + *logging::out << logging::Logger::LOGGER_ERROR + << "reorderRecvIndexForCommAfterFtoC(): iCellFCCBorder needs to be inititalized before calling " + "this function " + << "\n"; + uint numberOfIndices = getNumberOfReceiveIndices(direction, level); int sparseIndexRecv; bool isInICellFCCBorder; -- GitLab