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

Method MakeDirectory

IO/ParallelXML/vtkXMLWriter2.cxx:132–144  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

130
131//----------------------------------------------------------------------------
132bool vtkXMLWriter2::MakeDirectory(const std::string& dirname) const
133{
134 int status = 0;
135 if (this->Controller == nullptr || this->Controller->GetLocalProcessId() == 0)
136 {
137 status = vtksys::SystemTools::MakeDirectory(dirname) ? 1 : 0;
138 }
139 if (this->Controller && this->Controller->GetNumberOfProcesses() > 1)
140 {
141 this->Controller->Broadcast(&status, 1, 0);
142 }
143 return (status == 1);
144}
145
146//----------------------------------------------------------------------------
147int vtkXMLWriter2::ExclusiveScanSum(vtkMultiProcessController* controller, int count)

Callers 2

RequestDataMethod · 0.45
RequestDataMethod · 0.45

Calls 3

GetNumberOfProcessesMethod · 0.80
GetLocalProcessIdMethod · 0.45
BroadcastMethod · 0.45

Tested by

no test coverage detected