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