xref: /libCEED/examples/solids/elasticity.h (revision 24a65d3da2f623912f26b42c0b9ba6f37de25307)
1 // Copyright (c) 2017-2022, 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 <petscdmplex.h>
11 #include <petscsnes.h>
12 #include <stdbool.h>
13 #include <string.h>
14 
15 #include "include/cl-options.h"
16 #include "include/matops.h"
17 #include "include/misc.h"
18 #include "include/setup-dm.h"
19 #include "include/setup-libceed.h"
20 #include "include/structs.h"
21 #include "include/utils.h"
22 #include "problems/problems.h"
23 
24 #if PETSC_VERSION_LT(3, 20, 0)
25 #error "PETSc v3.20 or later is required"
26 #endif
27 
28 #if PETSC_VERSION_LT(3, 21, 0)
29 #define DMSetCoordinateDisc(a, b, c) DMProjectCoordinates(a, b)
30 #endif
31