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

Function InitializeBlocksForStructuredData

Parallel/DIY/vtkDIYGhostUtilities.cxx:2074–2086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2072//----------------------------------------------------------------------------
2073template <class StructuredDataSetT>
2074void InitializeBlocksForStructuredData(
2075 diy::Master& master, std::vector<StructuredDataSetT*>& inputs)
2076{
2077 using BlockType = typename ::DataSetTypeToBlockTypeConverter<StructuredDataSetT>::BlockType;
2078 for (int localId = 0; localId < static_cast<int>(inputs.size()); ++localId)
2079 {
2080 StructuredDataSetT* input = inputs[localId];
2081 auto& info = master.block<BlockType>(localId)->Information;
2082 info.Input = input;
2083 const int* extent = input->GetExtent();
2084 info.InputExtent = { extent[0], extent[1], extent[2], extent[3], extent[4], extent[5] };
2085 }
2086}
2087
2088//----------------------------------------------------------------------------
2089template <class PointSetT>

Callers 1

InitializeBlocksMethod · 0.85

Calls 2

sizeMethod · 0.45
GetExtentMethod · 0.45

Tested by

no test coverage detected