t8  UNKNOWN
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
t8_geometry_with_vertices.hxx
Go to the documentation of this file.
1 /*
2  This file is part of t8code.
3  t8code is a C library to manage a collection (a forest) of multiple
4  connected adaptive space-trees of general element classes in parallel.
5 
6  Copyright (C) 2015 the developers
7 
8  t8code is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  t8code is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with t8code; if not, write to the Free Software Foundation, Inc.,
20  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 */
22 
28 #ifndef T8_GEOMETRY_WITH_VERTICES_HXX
29 #define T8_GEOMETRY_WITH_VERTICES_HXX
30 
31 #include <t8_cmesh.h>
35 
36 T8_EXTERN_C_BEGIN ();
37 
39  public:
40  /* Basic constructor that sets the dimension, the name, and the name for the attribute. */
41  t8_geometry_with_vertices (int dimension, const char *name, const char *attribute_name = NULL)
42  : t8_geometry (dimension, name, attribute_name)
43  {
44  active_tree_vertices = NULL;
45  active_tree = -1;
46  }
47 
48  /* Base constructor with no arguments. We need this since it
49  * is called from derived class constructors.
50  * Sets dimension and name to invalid values. */
52  {
53  active_tree_vertices = NULL;
54  active_tree = -1;
55  }
56 
63  {
64  }
65 
74  virtual void
76 
77  protected:
78  t8_gloidx_t active_tree; /*< The tree of which currently vertices are loaded. */
79  t8_eclass_t active_tree_class; /*< The class of the currently active tree. */
80  const double *active_tree_vertices; /*< The vertices of the currently active tree. */
81 };
82 
83 T8_EXTERN_C_END ();
84 
85 #endif /* !T8_GEOMETRY_WITH_VERTICES_HXX! */
Definition: t8_geometry_with_vertices.hxx:38
virtual void t8_geom_load_tree_data(t8_cmesh_t cmesh, t8_gloidx_t gtreeid)
Update a possible internal data buffer for per tree data.
Definition: t8_geometry_with_vertices.cxx:32
virtual ~t8_geometry_with_vertices()
The destructor.
Definition: t8_geometry_with_vertices.hxx:62
This structure holds the connectivity data of the coarse mesh.
Definition: t8_cmesh_types.h:88
Definition: t8_geometry_base.hxx:37
int dimension
The dimension of reference space for which this is a geometry.
Definition: t8_geometry_base.hxx:127
const char * name
The name of this geometry.
Definition: t8_geometry_base.hxx:130
int64_t t8_gloidx_t
A type for global indexing that holds really big numbers.
Definition: t8.h:98
We define the coarse mesh of trees in this file.
enum t8_eclass t8_eclass_t
This enumeration contains all possible element classes.
This header file provides a C interface to the t8_geometry_c class.
Implements the base pure virtual class t8_geometry which provides a general template for all geometri...
This header file provides a C interface for functions for the t8_geometry_with_vertices class.