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

Method AppendTimeValues

IO/HDF/vtkHDFWriter.cxx:1637–1650  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1635
1636//------------------------------------------------------------------------------
1637bool vtkHDFWriter::AppendTimeValues(hid_t group)
1638{
1639 if (this->Impl->CreateScalarAttribute(group, "NSteps", this->NumberOfTimeSteps) ==
1640 H5I_INVALID_HID)
1641 {
1642 vtkErrorMacro(<< "Could not create steps group when creating: " << this->FileName);
1643 return false;
1644 }
1645
1646 vtkNew<vtkDoubleArray> timeStepsArray;
1647 timeStepsArray->SetArray(this->timeSteps.data(), this->NumberOfTimeSteps, 1);
1648 return this->Impl->CreateDatasetFromDataArray(group, "Values", H5T_IEEE_F32LE, timeStepsArray) !=
1649 H5I_INVALID_HID;
1650}
1651
1652//------------------------------------------------------------------------------
1653bool vtkHDFWriter::AppendDataArrayOffset(hid_t baseGroup, vtkAbstractArray* array,

Calls 4

CreateScalarAttributeMethod · 0.80
SetArrayMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected