From 799f2ea21e97d2e275121ce9d50888c6ff5e21f4 Mon Sep 17 00:00:00 2001 From: Dominik Thoennes <dominik.thoennes@fau.de> Date: Mon, 23 Jan 2023 07:56:43 +0100 Subject: [PATCH] fix comparison in Blockforest --- src/blockforest/BlockForest.cpp | 2 +- src/blockforest/SetupBlockForest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blockforest/BlockForest.cpp b/src/blockforest/BlockForest.cpp index 70b1fdaf4..50ebc8c27 100644 --- a/src/blockforest/BlockForest.cpp +++ b/src/blockforest/BlockForest.cpp @@ -2844,7 +2844,7 @@ void BlockForest::saveToFile( const std::string & filename, FileIOMode fileIOMod "\n- block AABB = " << block->second->getAABB() ); //Elementwise OR of all elements for (uint_t i = 0; i < suidBoolVec.size(); ++i) { - suidBoolVec[i] = suidBoolVec[i] | suidMap.find( *suid )->second[i]; + suidBoolVec[i] = suidBoolVec[i] || suidMap.find( *suid )->second[i]; } } diff --git a/src/blockforest/SetupBlockForest.cpp b/src/blockforest/SetupBlockForest.cpp index 449e8bea3..4bd604619 100644 --- a/src/blockforest/SetupBlockForest.cpp +++ b/src/blockforest/SetupBlockForest.cpp @@ -1783,7 +1783,7 @@ void SetupBlockForest::saveToFile( const char* const filename ) const { WALBERLA_ASSERT( suidMap.find( *suid ) != suidMap.end() ); //Elementwise OR of all elements for (uint_t k = 0;k < suidBoolVec.size(); ++k) { - suidBoolVec[k] = suidBoolVec[k] | suidMap.find( *suid )->second[k]; + suidBoolVec[k] = suidBoolVec[k] || suidMap.find( *suid )->second[k]; } } -- GitLab