MCPcopy Create free account
hub / github.com/Kitware/VTK / CheckSuccess

Function CheckSuccess

Parallel/MPI/Testing/Cxx/TestExerciseMultiProcessController.cxx:113–124  ·  view source on GitHub ↗

============================================================================= Check to see if any of the processes failed.

Source from the content-addressed store, hash-verified

111//=============================================================================
112// Check to see if any of the processes failed.
113static void CheckSuccess(vtkMultiProcessController* controller, int success)
114{
115 int allSuccess;
116 controller->Reduce(&success, &allSuccess, 1, vtkCommunicator::LOGICAL_AND_OP, 0);
117 controller->Broadcast(&allSuccess, 1, 0);
118
119 if (!allSuccess || !success)
120 {
121 COUT("**** Detected an ERROR ****");
122 throw ExerciseMultiProcessControllerError();
123 }
124}
125
126//------------------------------------------------------------------------------
127template <class baseType, class arrayType>

Callers 3

ExerciseTypeFunction · 0.85
ExerciseDataObjectFunction · 0.85

Calls 3

ReduceMethod · 0.45
BroadcastMethod · 0.45

Tested by

no test coverage detected