mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-24 22:57:42 -05:00
simplify boolean condition
This commit is contained in:
1 parent
5458e12b30
commit
ce6668c3c6
1 file changed
+1
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user