Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
DLR-AMR
GitHub Repository: DLR-AMR/t8code
Path: blob/main/src/t8_cmesh/t8_cmesh_internal/t8_cmesh_copy.h
921 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_cmesh_copy.h
24
* Function to copy a cmesh.
25
*/
26
27
#ifndef T8_CMESH_COPY_H
28
#define T8_CMESH_COPY_H
29
30
#include <t8.h>
31
#include <t8_cmesh/t8_cmesh.h>
32
#include <t8_cmesh/t8_cmesh_internal/t8_cmesh_types.h>
33
34
T8_EXTERN_C_BEGIN ();
35
36
/**
37
* Copy the coarse mesh from \a cmesh_from to \a cmesh.
38
*
39
* \param [in, out] cmesh The coarse mesh to copy to.
40
* \param [in] cmesh_from The coarse mesh to copy from.
41
* \param [in] comm The MPI communicator to use.
42
*/
43
void
44
t8_cmesh_copy (t8_cmesh_t cmesh, t8_cmesh_t cmesh_from, sc_MPI_Comm comm);
45
46
T8_EXTERN_C_END ();
47
48
#endif /* !T8_CMESH_COPY_H */
49
50