p4est  2.8.643-dbc7-dirty
p4est is a software library for parallel adaptive mesh refinement.
p4est_points.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 /********************************************************************
26  * IMPORTANT NOTE *
27  * *
28  * The p4est_points functionality depends on sc/src/sc_sort. *
29  * That parallel bitonic sort is still buggy (see sc/bugs). *
30  * If you want to use this code you have to fix the sort first. *
31  ********************************************************************/
32 
33 #ifndef P4EST_POINTS_H
34 #define P4EST_POINTS_H
35 
36 #include <p4est.h>
37 
38 SC_EXTERN_C_BEGIN;
39 
65 p4est_t *p4est_new_points (sc_MPI_Comm mpicomm,
66  p4est_connectivity_t * connectivity,
67  int maxlevel, p4est_quadrant_t * points,
68  p4est_locidx_t num_points,
69  p4est_locidx_t max_points,
70  size_t data_size, p4est_init_t init_fn,
71  void *user_pointer);
72 
73 SC_EXTERN_C_END;
74 
75 #endif /* !P4EST_POINTS_H */
The top-level 2D p4est interface.
void(* p4est_init_t)(p4est_t *p4est, p4est_topidx_t which_tree, p4est_quadrant_t *quadrant)
Callback function prototype to initialize the quadrant's user data.
Definition: p4est.h:203
int32_t p4est_locidx_t
Typedef for processor-local indexing of quadrants and nodes.
Definition: p4est_base.h:106
sc3_MPI_Comm_t sc_MPI_Comm
This structure holds the 2D inter-tree connectivity information.
Definition: p4est_connectivity.h:153
The 2D quadrant datatype.
Definition: p4est.h:72
The p4est forest datatype.
Definition: p4est.h:136