mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 03:57:45 +00:00
Fix consistency between PV and bestmove output
In case that a non-root mainThread on a node is the new best thread in the cluster, it should always output its PV.
This commit is contained in:
committed by
Stéphane Nicolet
parent
2405b38165
commit
80afeb0d3b
+1
-2
@@ -58,8 +58,7 @@ static void BestMove(void* in, void* inout, int* len, MPI_Datatype* datatype) {
|
||||
MoveInfo* r = static_cast<MoveInfo*>(inout);
|
||||
for (int i=0; i < *len; ++i)
|
||||
{
|
||||
if ( (l[i].depth > r[i].depth || (l[i].depth == r[i].depth && l[i].rank < r[i].rank))
|
||||
&& (l[i].score >= r[i].score))
|
||||
if (l[i].depth >= r[i].depth && l[i].score >= r[i].score)
|
||||
r[i] = l[i];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user