t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
t8_cmesh_vtk_reader.hxx
Go to the documentation of this file.
1 /*
2 This file is part of t8code.
3 t8code is a C library to manage a collection (a forest) of multiple
4 connected adaptive space-trees of general element classes in parallel.
5 
6 Copyright (C) 2015 the developers
7 
8 t8code is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12 
13 t8code is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with t8code; if not, write to the Free Software Foundation, Inc.,
20 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 */
22 
27 #ifndef T8_CMESH_VTK_READER
28 #define T8_CMESH_VTK_READER
29 
30 #include <t8_cmesh.h>
31 
32 #if T8_WITH_VTK
33 #include <vtkSmartPointer.h>
34 #include <vtkCellData.h>
35 #include <vtkDataSet.h>
36 #endif
37 
38 T8_EXTERN_C_BEGIN ();
42 typedef enum vtk_file_type
43 {
44  VTK_FILE_ERROR = -1, /*For Testing purpose. */
45  VTK_UNSTRUCTURED_FILE = 0,
46  VTK_POLYDATA_FILE = 1
48 
60 t8_cmesh_t t8_cmesh_vtk_reader (const char *filename,
61  const int partition,
62  const int main_proc,
63  sc_MPI_Comm comm,
65 
66 T8_EXTERN_C_END ();
67 
68 #endif /* T8_CMESH_VTK_READER */
This structure holds the connectivity data of the coarse mesh.
Definition: t8_cmesh_types.h:83
We define the coarse mesh of trees in this file.
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,...
Definition: t8_cmesh_vtk_reader.cxx:33
enum vtk_file_type vtk_file_type_t
Enumerator for all types of files readable by t8code.
vtk_file_type
Enumerator for all types of files readable by t8code.
Definition: t8_cmesh_vtk_reader.hxx:43