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

Method HasAMRBlockCellData

IO/AMR/vtkAMRDataSetCache.cxx:152–167  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

150
151//------------------------------------------------------------------------------
152bool vtkAMRDataSetCache::HasAMRBlockCellData(int compositeIdx, const char* name)
153{
154 assert("pre: array name is nullptr" && (name != nullptr));
155
156 if (this->HasAMRBlock(compositeIdx))
157 {
158 vtkUniformGrid* gridPtr = this->GetAMRBlock(compositeIdx);
159 assert("pre: cachedk block is nullptr!" && (gridPtr != nullptr));
160
161 vtkCellData* CD = gridPtr->GetCellData();
162 assert("pre: cell data is nullptr" && (CD != nullptr));
163
164 return CD->HasArray(name) != 0;
165 }
166 return false;
167}
168
169//------------------------------------------------------------------------------
170bool vtkAMRDataSetCache::HasAMRBlockPointData(int compositeIdx, const char* name)

Callers 2

GetAMRBlockCellDataMethod · 0.95
GetAMRDataMethod · 0.80

Calls 5

HasAMRBlockMethod · 0.95
GetAMRBlockMethod · 0.95
assertFunction · 0.50
GetCellDataMethod · 0.45
HasArrayMethod · 0.45

Tested by

no test coverage detected