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

Method GetParticlesTypeArray

IO/AMR/vtkAMREnzoParticlesReader.cxx:184–194  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

182
183//------------------------------------------------------------------------------
184vtkDataArray* vtkAMREnzoParticlesReader::GetParticlesTypeArray(int blockIdx)
185{
186
187 vtkIntArray* array = vtkIntArray::New();
188 if (this->ParticleDataArraySelection->ArrayExists("particle_type"))
189 {
190 this->Internal->LoadAttribute("particle_type", blockIdx);
191 array->DeepCopy(this->Internal->DataArray);
192 }
193 return (array);
194}
195
196//------------------------------------------------------------------------------
197bool vtkAMREnzoParticlesReader::CheckParticleType(int idx, vtkIntArray* ptypes)

Callers 1

GetParticlesMethod · 0.95

Calls 4

LoadAttributeMethod · 0.80
NewFunction · 0.50
ArrayExistsMethod · 0.45
DeepCopyMethod · 0.45

Tested by

no test coverage detected