p4est  1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p4est_balance.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) 2011 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 P4EST_BALANCE_H
25 #define P4EST_BALANCE_H
26 
27 #include <p4est.h>
28 
43 int p4est_balance_seeds (p4est_quadrant_t * q,
44  p4est_quadrant_t * p,
45  p4est_connect_type_t balance,
46  sc_array_t * seeds);
47 
51 int p4est_balance_seeds_face (p4est_quadrant_t * q,
52  p4est_quadrant_t * p,
53  int face, p4est_connect_type_t
54  balance, sc_array_t * seeds);
55 
59 int p4est_balance_seeds_corner (p4est_quadrant_t * q,
60  p4est_quadrant_t * p,
61  int face, p4est_connect_type_t
62  balance, sc_array_t * seeds);
63 
64 #endif
The top-level 2D p4est interface.
The sc_array object provides a large array of equal-size elements.
Definition: sc_containers.h:92
p4est_connect_type_t
Characterize a type of adjacency.
Definition: p4est_connectivity.h:77
The 2D quadrant datatype.
Definition: p4est.h:65