1*98285ab4SZach Atkins // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2*98285ab4SZach Atkins // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3*98285ab4SZach Atkins // 4*98285ab4SZach Atkins // SPDX-License-Identifier: BSD-2-Clause 5*98285ab4SZach Atkins // 6*98285ab4SZach Atkins // This file is part of CEED: http://github.com/ceed 7*98285ab4SZach Atkins 8*98285ab4SZach Atkins /// @file 9*98285ab4SZach Atkins /// Setup functions for BPs 10*98285ab4SZach Atkins 11b7c563b6SJeremy L Thompson #ifndef libceed_petsc_examples_setup_h 12b7c563b6SJeremy L Thompson #define libceed_petsc_examples_setup_h 13e83e87a5Sjeremylt 14e83e87a5Sjeremylt #include <ceed.h> 15e83e87a5Sjeremylt #include <petsc.h> 16e83e87a5Sjeremylt 17e83e87a5Sjeremylt #include "structs.h" 18e83e87a5Sjeremylt 19e83e87a5Sjeremylt PetscErrorCode CeedDataDestroy(CeedInt i, CeedData data); 202b730f8bSJeremy L Thompson PetscErrorCode SetupLibceedByDegree(DM dm, Ceed ceed, CeedInt degree, CeedInt topo_dim, CeedInt q_extra, PetscInt num_comp_x, PetscInt num_comp_u, 212b730f8bSJeremy L Thompson PetscInt g_size, PetscInt xl_size, BPData bp_data, CeedData data, PetscBool setup_rhs, CeedVector rhs_ceed, 22e83e87a5Sjeremylt CeedVector *target); 232b730f8bSJeremy L Thompson PetscErrorCode CeedLevelTransferSetup(DM dm, Ceed ceed, CeedInt level, CeedInt num_comp_u, CeedData *data, BPData bp_data, Vec fine_mult); 24e83e87a5Sjeremylt 25b7c563b6SJeremy L Thompson #endif // libceed_petsc_examples_setup_h 26