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

Header for the vtk-reader. More...

#include <t8_cmesh.h>

Go to the source code of this file.

Typedefs

typedef enum vtk_file_type vtk_file_type_t
 Enumerator for all types of files readable by t8code.
 

Enumerations

enum  vtk_file_type {
  VTK_FILE_ERROR = -1 ,
  VTK_UNSTRUCTURED_FILE = 0 ,
  VTK_POLYDATA_FILE = 1
}
 Enumerator for all types of files readable by t8code.
 

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

Header for the vtk-reader.

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.