Path: blob/main/src/t8_schemes/t8_default/t8_default_c_interface.h
914 views
/*1This file is part of t8code.2t8code is a C library to manage a collection (a forest) of multiple3connected adaptive space-trees of general element classes in parallel.45Copyright (C) 2015 the developers67t8code is free software; you can redistribute it and/or modify8it under the terms of the GNU General Public License as published by9the Free Software Foundation; either version 2 of the License, or10(at your option) any later version.1112t8code is distributed in the hope that it will be useful,13but WITHOUT ANY WARRANTY; without even the implied warranty of14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15GNU General Public License for more details.1617You should have received a copy of the GNU General Public License18along with t8code; if not, write to the Free Software Foundation, Inc.,1951 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.20*/2122/** \file t8_default_c_interface.h23* C interface definition to the default element implementation.24*/2526#ifndef T8_DEFAULT_C_INTERFACE_H27#define T8_DEFAULT_C_INTERFACE_H2829#include <t8_element.h>3031T8_EXTERN_C_BEGIN ();3233/** Return the default scheme implementation of t8code. */34const t8_scheme_c *35t8_scheme_new_default (void);3637/** Check whether a given eclass_scheme is one of the default schemes.38* \param [in] scheme A (pointer to a) scheme39* \param [in] eclass The eclass to check40* \return True (non-zero) if \a scheme is one of the default schemes,41* false (zero) otherwise.42*/43int44t8_eclass_scheme_is_default (const t8_scheme_c *scheme, const t8_eclass_t eclass);4546T8_EXTERN_C_END ();4748#endif /* !T8_DEFAULT_C_INTERFACE_H */495051