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

Method SetAMRBlockSourceIndex

Common/DataModel/vtkOverlappingAMR.cxx:242–250  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

240
241//------------------------------------------------------------------------------
242void vtkOverlappingAMR::SetAMRBlockSourceIndex(unsigned int level, unsigned int id, int sourceId)
243{
244 vtkOverlappingAMRMetaData* oamrMetaData = this->GetOverlappingAMRMetaData();
245 if (oamrMetaData)
246 {
247 unsigned int index = oamrMetaData->GetAbsoluteBlockIndex(level, id);
248 oamrMetaData->SetAMRBlockSourceIndex(index, sourceId);
249 }
250}
251
252//------------------------------------------------------------------------------
253int vtkOverlappingAMR::GetAMRBlockSourceIndex(unsigned int level, unsigned int id)

Callers 4

FillMetaDataMethod · 0.45
FillMetaDataMethod · 0.45
FillMetaDataMethod · 0.45
FillMetaDataMethod · 0.45

Calls 2

GetAbsoluteBlockIndexMethod · 0.45

Tested by

no test coverage detected