p4est 2.8.8
p4est is a software library for parallel adaptive mesh refinement.
Loading...
Searching...
No Matches
p4est_tnodes.h
Go to the documentation of this file.
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
36#ifndef P4EST_TNODES_H
37#define P4EST_TNODES_H
38
39#include <p4est_lnodes.h>
40
41SC_EXTERN_C_BEGIN;
42
44#define P4EST_TNODES_SIMPLEX_CORNERS 3
45
47#define P4EST_TNODES_CUBE_SIMPLICES 2
48
98
103extern const int p4est_tnodes_simplex_reverse[2];
104
111int p4est_tnodes_simplex_parent (int p, int c, int k);
112
120int p4est_tnodes_simplex_parent_is_valid
121 (int p, int kp, int c, int kc);
122
128int p4est_tnodes_quadrant_Q1_simplices
129 (p4est_lnodes_code_t fc, int pc);
130
135int p4est_tnodes_quadrant_Q2_simplices
137
150p4est_tnodes_t *p4est_tnodes_new_Q1_P1 (p4est_t *p4est,
151 p4est_lnodes_t *lnodes);
152
164p4est_tnodes_t *p4est_tnodes_new_Q2_P1 (p4est_t *p4est,
165 p4est_lnodes_t *lnodes);
166
182p4est_tnodes_t *p4est_tnodes_new_Q2_P1_ind (p4est_t *p4est,
183 p4est_lnodes_t *lnodes);
184
189size_t p4est_tnodes_memory_used (p4est_tnodes_t *tnodes);
190
194void p4est_tnodes_destroy (p4est_tnodes_t * tnodes);
195
196SC_EXTERN_C_END;
197
198#endif /* !P4EST_TNODES_H */
int32_t p4est_locidx_t
Typedef for processor-local indexing of quadrants and nodes.
Definition p4est_base.h:106
int64_t p4est_gloidx_t
Typedef for globally unique indexing of quadrants.
Definition p4est_base.h:118
Generate Lobatto node numbers for any degree.
int8_t p4est_lnodes_code_t
The face code encodes the configuration of a hanging quadrant.
Definition p4est_lnodes.h:44
const int p4est_tnodes_simplex_reverse[2]
The number of the congruent simplex that starts at the antipode.
struct p4est_tnodes p4est_tnodes_t
Lookup table structure defining a conforming triangle mesh.
Store a parallel numbering of Lobatto points of a given degree > 0.
Definition p4est_lnodes.h:145
Lookup table structure defining a conforming triangle mesh.
Definition p4est_tnodes.h:68
p4est_locidx_t * local_tcount
Triangle count for each process (has mpisize entries).
Definition p4est_tnodes.h:77
sc_array_t * simplices
Vertex indices of local simplices.
Definition p4est_tnodes.h:86
p4est_locidx_t * local_element_offset
Offsets into local triangles per element and one beyond.
Definition p4est_tnodes.h:82
int mpisize
Number of parallel processes.
Definition p4est_tnodes.h:69
int Pdegree
Degree of simplex space.
Definition p4est_tnodes.h:71
p4est_gloidx_t global_tcount
Global triangle count.
Definition p4est_tnodes.h:76
sc_array_t * element_bits
For each local element, one or four bytes of flag bits.
Definition p4est_tnodes.h:95
p4est_gloidx_t global_toffset
Global triangle offset for the current process.
Definition p4est_tnodes.h:74
sc_array_t * simplex_level
Simplex level l as an int8_t, reference volume 2**{-l} / 2.
Definition p4est_tnodes.h:84
int Qdegree
Degree of original lnodes.
Definition p4est_tnodes.h:70
The p4est forest datatype.
Definition p4est.h:150