------------------------------------------------------------------------------
| 292 | |
| 293 | //------------------------------------------------------------------------------ |
| 294 | vtkPolyData* vtkAMRFlashParticlesReader::ReadParticles(int blkidx) |
| 295 | { |
| 296 | assert("pre: Internal reader is nullptr" && (this->Internal != nullptr)); |
| 297 | assert("pre: Not initialized " && (this->Initialized)); |
| 298 | |
| 299 | int NumberOfParticles = this->Internal->NumberOfParticles; |
| 300 | if (NumberOfParticles <= 0) |
| 301 | { |
| 302 | vtkPolyData* emptyParticles = vtkPolyData::New(); |
| 303 | assert("Cannot create particle dataset" && (emptyParticles != nullptr)); |
| 304 | return (emptyParticles); |
| 305 | } |
| 306 | |
| 307 | vtkPolyData* particles = this->GetParticles(this->Internal->ParticleName.c_str(), blkidx); |
| 308 | assert("partciles should not be nullptr " && (particles != nullptr)); |
| 309 | |
| 310 | return (particles); |
| 311 | } |
| 312 | |
| 313 | //------------------------------------------------------------------------------ |
| 314 | void vtkAMRFlashParticlesReader::SetupParticleDataSelections() |
nothing calls this directly
no test coverage detected