simplify boolean condition

This commit is contained in:
Arne Morten Kvarving committed 2025-08-26 16:26:15 +02:00
1 parent 5458e12b30
commit ce6668c3c6
1 file changed
+1 -2
+1 -2
View File
@@ -52,8 +52,7 @@ displayDebugMessageOnRank0_(const std::string& msg) const
{
// This output should be identical for all ranks.
if ( (!this->debug_output_only_on_rank0)
|| (this->debug_output_only_on_rank0 && this->comm_.rank() == 0) ) {
if (!this->debug_output_only_on_rank0 || this->comm_.rank() == 0) {
displayDebugMessage_(msg);
}
}