Path: blob/main/src/t8_cmesh/t8_cmesh_internal/t8_cmesh_copy.h
921 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_cmesh_copy.h23* Function to copy a cmesh.24*/2526#ifndef T8_CMESH_COPY_H27#define T8_CMESH_COPY_H2829#include <t8.h>30#include <t8_cmesh/t8_cmesh.h>31#include <t8_cmesh/t8_cmesh_internal/t8_cmesh_types.h>3233T8_EXTERN_C_BEGIN ();3435/**36* Copy the coarse mesh from \a cmesh_from to \a cmesh.37*38* \param [in, out] cmesh The coarse mesh to copy to.39* \param [in] cmesh_from The coarse mesh to copy from.40* \param [in] comm The MPI communicator to use.41*/42void43t8_cmesh_copy (t8_cmesh_t cmesh, t8_cmesh_t cmesh_from, sc_MPI_Comm comm);4445T8_EXTERN_C_END ();4647#endif /* !T8_CMESH_COPY_H */484950