------------------------------------------------------------------------------
| 195 | |
| 196 | //------------------------------------------------------------------------------ |
| 197 | bool vtkAMREnzoParticlesReader::CheckParticleType(int idx, vtkIntArray* ptypes) |
| 198 | { |
| 199 | assert("pre: particles type array should not be nullptr" && (ptypes != nullptr)); |
| 200 | |
| 201 | if (ptypes->GetNumberOfTuples() > 0 && |
| 202 | this->ParticleDataArraySelection->ArrayExists("particle_type")) |
| 203 | { |
| 204 | int ptype = ptypes->GetValue(idx); |
| 205 | return this->ParticleType == 0 || ptype == this->ParticleType; |
| 206 | } |
| 207 | else |
| 208 | { |
| 209 | return true; |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | //------------------------------------------------------------------------------ |
| 214 | vtkPolyData* vtkAMREnzoParticlesReader::GetParticles(const char* file, int blockIdx) |
no test coverage detected