xref: /libCEED/examples/solids/include/setup-dm.h (revision fc0f7cc68128f3536a834f19d72828f4c59a4439)
1 // Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and other CEED contributors.
2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3 //
4 // SPDX-License-Identifier: BSD-2-Clause
5 //
6 // This file is part of CEED:  http://github.com/ceed
7 #pragma once
8 
9 #include <ceed.h>
10 #include <petscdm.h>
11 
12 #include "../include/structs.h"
13 
14 // -----------------------------------------------------------------------------
15 // Setup DM
16 // -----------------------------------------------------------------------------
17 PetscErrorCode CreateBCLabel(DM dm, const char name[]);
18 
19 // Read mesh and distribute DM in parallel
20 PetscErrorCode CreateDistributedDM(MPI_Comm comm, AppCtx app_ctx, DM *dm);
21 
22 // Setup DM with FE space of appropriate degree
23 PetscErrorCode SetupDMByDegree(DM dm, AppCtx app_ctx, PetscInt order, PetscBool boundary, PetscInt num_comp_u);
24