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

Method GetCurrentWorkingDirectory

Parallel/Core/vtkPSystemTools.cxx:144–154  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

142
143//------------------------------------------------------------------------------
144std::string vtkPSystemTools::GetCurrentWorkingDirectory(bool /* collapse */)
145{
146 vtkMultiProcessController* controller = vtkMultiProcessController::GetGlobalController();
147 std::string returnString;
148 if (controller->GetLocalProcessId() == 0)
149 {
150 returnString = vtksys::SystemTools::GetCurrentWorkingDirectory();
151 }
152 vtkPSystemTools::BroadcastString(returnString, 0);
153 return returnString;
154}
155
156//------------------------------------------------------------------------------
157std::string vtkPSystemTools::GetProgramPath(const std::string& path)

Callers

nothing calls this directly

Calls 2

BroadcastStringFunction · 0.50
GetLocalProcessIdMethod · 0.45

Tested by

no test coverage detected