============================================================================= Check to see if any of the processes failed.
| 111 | //============================================================================= |
| 112 | // Check to see if any of the processes failed. |
| 113 | static 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 | //------------------------------------------------------------------------------ |
| 127 | template <class baseType, class arrayType> |
no test coverage detected