t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Functions
t8_cmesh_vtk_reader.cxx File Reference

Implementation of a Reader for vtk/vtu files using the vtk-library. More...

#include <t8_cmesh_vtk_reader.hxx>

Functions

t8_cmesh_t t8_cmesh_vtk_reader (const char *filename, const int partition, const int main_proc, sc_MPI_Comm comm, const vtk_file_type_t vtk_file_type)
 Construct a cmesh given a filename refering to a vtk-file either containing an unstructured grid, or vtk-polydata, most likely constructed by vtk. More...
 

Detailed Description

Implementation of a Reader for vtk/vtu files using the vtk-library.

The functions can only be used when t8code is linked with the vtk-library.

Function Documentation

◆ t8_cmesh_vtk_reader()

t8_cmesh_t t8_cmesh_vtk_reader ( const char *  filename,
const int  partition,
const int  main_proc,
sc_MPI_Comm  comm,
const vtk_file_type_t  vtk_file_type 
)

Construct a cmesh given a filename refering to a vtk-file either containing an unstructured grid, or vtk-polydata, most likely constructed by vtk.

Parameters
[in]filenameThe name of the file
[in]partitionFlag if the constructed mesh should be partitioned
[in]main_procThe main reading processor
[in]commAn mpi-communicator
[in]vtk_file_typeA vtk-filetype that is readable by t8code.
Returns
A commited cmesh.