p4est  1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6est_vtk.h
1 /*
2  This file is part of p4est.
3  p4est is a C library to manage a collection (a forest) of multiple
4  connected adaptive quadtrees or octrees in parallel.
5 
6  Copyright (C) 2013 The University of Texas System
7  Written by Carsten Burstedde, Lucas C. Wilcox, and Tobin Isaac
8 
9  p4est is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13 
14  p4est is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with p4est; if not, write to the Free Software Foundation, Inc.,
21  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 */
23 
24 #ifndef P6EST_VTK_H
25 #define P6EST_VTK_H
26 
27 #include <p6est.h>
28 
29 SC_EXTERN_C_BEGIN;
30 
43 void p6est_vtk_write_file (p6est_t * p6est,
44  const char *filename);
45 
62 void p6est_vtk_write_all (p6est_t * p6est,
63  double scale, int write_tree,
64  int write_rank, int wrap_rank,
65  int num_scalars, int num_vectors,
66  const char *filename, ...);
67 
96 int p6est_vtk_write_header (p6est_t * p6est,
97  double scale, int write_tree,
98  int write_rank, int wrap_rank,
99  const char *point_scalars,
100  const char *point_vectors,
101  const char *filename);
102 
121 int p6est_vtk_write_point_scalar (p6est_t * p6est,
122  const char *filename,
123  const char *scalar_name,
124  const double *values);
125 
144 int p6est_vtk_write_point_vector (p6est_t * p6est,
145  const char *filename,
146  const char *vector_name,
147  const double *values);
148 
168 int p6est_vtk_write_footer (p6est_t * p6est,
169  const char *filename);
170 
171 SC_EXTERN_C_END;
172 
173 #endif /* P6EST_VTK_H */
The p6est forest datatype.
Definition: p6est.h:163
A hybrid 2D+1D AMR extension.