p4est
1.0
|
00001 /* 00002 This file is part of p4est. 00003 p4est is a C library to manage a collection (a forest) of multiple 00004 connected adaptive quadtrees or octrees in parallel. 00005 00006 Copyright (C) 2010 The University of Texas System 00007 Written by Carsten Burstedde, Lucas C. Wilcox, and Tobin Isaac 00008 00009 p4est is free software; you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation; either version 2 of the License, or 00012 (at your option) any later version. 00013 00014 p4est is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with p4est; if not, write to the Free Software Foundation, Inc., 00021 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00022 */ 00023 00031 #ifndef P4EST_VTK_H 00032 #define P4EST_VTK_H 00033 00034 #include <p4est_geometry.h> 00035 #include <p4est.h> 00036 00037 SC_EXTERN_C_BEGIN; 00038 00052 void p4est_vtk_write_file (p4est_t * p4est, 00053 p4est_geometry_t * geom, 00054 const char *filename); 00055 00074 void p4est_vtk_write_all (p4est_t * p4est, 00075 p4est_geometry_t * geom, 00076 double scale, 00077 int write_tree, int write_level, 00078 int write_rank, int wrap_rank, 00079 int num_scalars, int num_vectors, 00080 const char *filename, ...); 00081 00112 int p4est_vtk_write_header (p4est_t * p4est, 00113 p4est_geometry_t * geom, 00114 double scale, 00115 int write_tree, int write_level, 00116 int write_rank, int wrap_rank, 00117 const char *point_scalars, 00118 const char *point_vectors, 00119 const char *filename); 00120 00140 int p4est_vtk_write_point_scalar (p4est_t * p4est, 00141 p4est_geometry_t * geom, 00142 const char *filename, 00143 const char *scalar_name, 00144 const double *values); 00145 00165 int p4est_vtk_write_point_vector (p4est_t * p4est, 00166 p4est_geometry_t * geom, 00167 const char *filename, 00168 const char *vector_name, 00169 const double *values); 00170 00190 int p4est_vtk_write_footer (p4est_t * p4est, 00191 const char *filename); 00192 00193 SC_EXTERN_C_END; 00194 00195 #endif /* !P4EST_VTK_H */