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

Function NewFoamReader

IO/Parallel/vtkPOpenFOAMReader.cxx:98–111  ·  view source on GitHub ↗

Create a sub-reader with the current characteristics

Source from the content-addressed store, hash-verified

96
97// Create a sub-reader with the current characteristics
98vtkSmartPointer<vtkOpenFOAMReader> NewFoamReader(vtkOpenFOAMReader* parent)
99{
100 auto reader = vtkSmartPointer<vtkOpenFOAMReader>::New();
101 reader->SetFileName(parent->GetFileName());
102 reader->SetParent(parent);
103 reader->SetSkipZeroTime(parent->GetSkipZeroTime());
104 reader->SetUse64BitLabels(parent->GetUse64BitLabels());
105 reader->SetUse64BitFloats(parent->GetUse64BitFloats());
106 // This function is only used in the decomposed case, so we are basically multithreading (if
107 // asked) over the processor dirs, but not over all /polyMesh/faces files of each processor dir.
108 reader->SetSequentialProcessing(true);
109
110 return reader;
111}
112
113// Generate a processor dirname from number or tuple.
114// For 1 component:

Callers 1

RequestInformationMethod · 0.85

Calls 6

SetUse64BitLabelsMethod · 0.80
SetUse64BitFloatsMethod · 0.80
NewFunction · 0.50
SetFileNameMethod · 0.45
GetFileNameMethod · 0.45
SetParentMethod · 0.45

Tested by

no test coverage detected