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

Method ReadParticles

IO/AMR/vtkAMRFlashParticlesReader.cxx:294–311  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

292
293//------------------------------------------------------------------------------
294vtkPolyData* 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//------------------------------------------------------------------------------
314void vtkAMRFlashParticlesReader::SetupParticleDataSelections()

Callers

nothing calls this directly

Calls 4

GetParticlesMethod · 0.95
assertFunction · 0.50
NewFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected