------------------------------------------------------------------------------
| 150 | |
| 151 | //------------------------------------------------------------------------------ |
| 152 | bool 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 | //------------------------------------------------------------------------------ |
| 170 | bool vtkAMRDataSetCache::HasAMRBlockPointData(int compositeIdx, const char* name) |
no test coverage detected