Function t8_vtkGrid_to_cmesh

Function Documentation

t8_cmesh_t t8_vtkGrid_to_cmesh(vtkSmartPointer<vtkDataSet> vtkGrid, const int partition, const int main_proc, const int distributed_grid, sc_MPI_Comm comm, const int package_id, const int starting_key)

Given a pointer to a vtkDataSet a cmesh representing the vtkDataSet is constructed and can be shared over the processes.

The vtk data arrays will be associated with the trees.

Parameters:
  • vtkGrid[in] A pointer to a vtkDataSet

  • partition[in] Flag if the cmesh should be partitioned

  • main_proc[in] The main reading process

  • distributed_grid[in] Flag if the vtkGrid is distributed over several procs.

  • comm[in] The communicator.

  • package_id[in] The package id of the application. It is generated with the usage of sc_package_register.

  • starting_key[in] If the application already registered attributes, the starting key is used so that the existing attributes are not overwritten.

Returns:

The committed cmesh