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

Method CheckAlgorithm

Common/ExecutionModel/vtkExecutive.cxx:737–768  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

735
736//------------------------------------------------------------------------------
737int vtkExecutive::CheckAlgorithm(const char* method, vtkInformation* request)
738{
739 if (this->InAlgorithm)
740 {
741 if (request)
742 {
743 std::ostringstream rqmsg;
744 request->Print(rqmsg);
745 vtkErrorMacro(<< method
746 << " invoked during another request. "
747 "Returning failure to algorithm "
748 << this->Algorithm->GetObjectDescription() << " for the recursive request:\n"
749 << rqmsg.str());
750 }
751 else
752 {
753 vtkErrorMacro(<< method
754 << " invoked during another request. "
755 "Returning failure to algorithm "
756 << this->Algorithm->GetObjectDescription() << ".");
757 }
758
759 // Tests should fail when this happens because there is a bug in
760 // the code.
761 if (getenv("DASHBOARD_TEST_FROM_CTEST") || getenv("DART_TEST_FROM_DART"))
762 {
763 abort();
764 }
765 return 0;
766 }
767 return 1;
768}
769
770//------------------------------------------------------------------------------
771// Look at all inputs and check ABORTED flag. If it is set, return true.

Callers 9

ProcessRequestMethod · 0.80
UpdatePipelineMTimeMethod · 0.80
UpdateDataObjectMethod · 0.80
UpdateInformationMethod · 0.80
UpdateDataMethod · 0.80
ProcessRequestMethod · 0.80
PropagateUpdateExtentMethod · 0.80
PropagateTimeMethod · 0.80

Calls 3

PrintMethod · 0.45
GetObjectDescriptionMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected