Skip to content
Snippets Groups Projects
Commit 40aef1f4 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

ExerciseMultiProcessController: indicate where the buffer differs

parent 3cc76e58
No related branches found
No related tags found
No related merge requests found
......@@ -469,7 +469,7 @@ void ExerciseType(vtkMultiProcessController* controller)
{
if (sourceArrays[i]->GetValue(j) != buffer->GetValue(i * arraySize + j))
{
vtkGenericWarningMacro("Gathered array from " << i << " incorrect.");
vtkGenericWarningMacro("Gathered array from " << i << " incorrect at " << j << ".");
result = 0;
break;
}
......@@ -491,7 +491,7 @@ void ExerciseType(vtkMultiProcessController* controller)
{
if (sourceArrays[i]->GetValue(j) != buffer->GetValue(i * arraySize + j))
{
vtkGenericWarningMacro("Gathered array from " << i << " incorrect.");
vtkGenericWarningMacro("Gathered array from " << i << " incorrect at " << j << ".");
result = 0;
break;
}
......@@ -554,7 +554,7 @@ void ExerciseType(vtkMultiProcessController* controller)
{
if (sourceArrays[i]->GetValue(j) != buffer->GetValue(offsets[i] + j))
{
vtkGenericWarningMacro("Gathered array from " << i << " incorrect.");
vtkGenericWarningMacro("Gathered array from " << i << " incorrect at " << j << ".");
result = 0;
break;
}
......@@ -580,7 +580,8 @@ void ExerciseType(vtkMultiProcessController* controller)
{
if (sourceArrays[srcProcessId]->GetValue(rank * length + i) != buffer->GetValue(i))
{
vtkGenericWarningMacro(<< "Scattered array from " << srcProcessId << " incorrect.");
vtkGenericWarningMacro(<< "Scattered array from " << srcProcessId << " incorrect at " << i
<< ".");
result = 0;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment