13d8e8822SJeremy L Thompson // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 23d8e8822SJeremy L Thompson // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 33d8e8822SJeremy L Thompson // 43d8e8822SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause 53d8e8822SJeremy L Thompson // 63d8e8822SJeremy L Thompson // This file is part of CEED: http://github.com/ceed 7*24a65d3dSJeremy L Thompson #pragma once 8ccaff030SJeremy L Thompson 93d576824SJeremy L Thompson #include <ceed.h> 10ccaff030SJeremy L Thompson #include <petscdmplex.h> 1149aac155SJeremy L Thompson #include <petscsnes.h> 123d576824SJeremy L Thompson #include <stdbool.h> 133d576824SJeremy L Thompson #include <string.h> 142b730f8bSJeremy L Thompson 155754ecacSJeremy L Thompson #include "include/cl-options.h" 165754ecacSJeremy L Thompson #include "include/matops.h" 175754ecacSJeremy L Thompson #include "include/misc.h" 185754ecacSJeremy L Thompson #include "include/setup-dm.h" 195754ecacSJeremy L Thompson #include "include/setup-libceed.h" 202b730f8bSJeremy L Thompson #include "include/structs.h" 215754ecacSJeremy L Thompson #include "include/utils.h" 222b730f8bSJeremy L Thompson #include "problems/problems.h" 23ccaff030SJeremy L Thompson 24d31f425aSJeremy L Thompson #if PETSC_VERSION_LT(3, 20, 0) 25d31f425aSJeremy L Thompson #error "PETSc v3.20 or later is required" 26b8962995SJeremy L Thompson #endif 27b8962995SJeremy L Thompson 2849a40c8aSKenneth E. Jansen #if PETSC_VERSION_LT(3, 21, 0) 2949a40c8aSKenneth E. Jansen #define DMSetCoordinateDisc(a, b, c) DMProjectCoordinates(a, b) 3049a40c8aSKenneth E. Jansen #endif 31