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

Method InsertAMRBlockPointData

IO/AMR/vtkAMRDataSetCache.cxx:51–70  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

49
50//------------------------------------------------------------------------------
51void vtkAMRDataSetCache::InsertAMRBlockPointData(int compositeIdx, vtkDataArray* dataArray)
52{
53 assert("pre: AMR array is nullptr" && (dataArray != nullptr));
54 assert("pre: AMR block is cached" && (this->HasAMRBlock(compositeIdx)));
55
56 vtkTimerLog::MarkStartEvent("AMRCache::InsertAMRBlockPointData");
57
58 vtkUniformGrid* amrBlock = this->GetAMRBlock(compositeIdx);
59 assert("pre: AMR block should not be nullptr" && (amrBlock != nullptr));
60
61 vtkPointData* PD = amrBlock->GetPointData();
62 assert("pre: PointData should not be nullptr" && (PD != nullptr));
63
64 if (!PD->HasArray(dataArray->GetName()))
65 {
66 PD->AddArray(dataArray);
67 }
68
69 vtkTimerLog::MarkEndEvent("AMRCache::InsertAMRBlockPointData");
70}
71
72//------------------------------------------------------------------------------
73void vtkAMRDataSetCache::InsertAMRBlockCellData(int compositeIdx, vtkDataArray* dataArray)

Callers 1

GetAMRPointDataMethod · 0.80

Calls 7

HasAMRBlockMethod · 0.95
GetAMRBlockMethod · 0.95
assertFunction · 0.50
GetPointDataMethod · 0.45
HasArrayMethod · 0.45
GetNameMethod · 0.45
AddArrayMethod · 0.45

Tested by

no test coverage detected