Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
DLR-AMR
GitHub Repository: DLR-AMR/t8code
Path: blob/main/src/t8_schemes/t8_default/t8_default_c_interface.h
914 views
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
23
/** \file t8_default_c_interface.h
24
* C interface definition to the default element implementation.
25
*/
26
27
#ifndef T8_DEFAULT_C_INTERFACE_H
28
#define T8_DEFAULT_C_INTERFACE_H
29
30
#include <t8_element.h>
31
32
T8_EXTERN_C_BEGIN ();
33
34
/** Return the default scheme implementation of t8code. */
35
const t8_scheme_c *
36
t8_scheme_new_default (void);
37
38
/** Check whether a given eclass_scheme is one of the default schemes.
39
* \param [in] scheme A (pointer to a) scheme
40
* \param [in] eclass The eclass to check
41
* \return True (non-zero) if \a scheme is one of the default schemes,
42
* false (zero) otherwise.
43
*/
44
int
45
t8_eclass_scheme_is_default (const t8_scheme_c *scheme, const t8_eclass_t eclass);
46
47
T8_EXTERN_C_END ();
48
49
#endif /* !T8_DEFAULT_C_INTERFACE_H */
50
51