// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. // // SPDX-License-Identifier: BSD-2-Clause // // This file is part of CEED: http://github.com/ceed /// @file /// Linear elasticity manufactured solution true solution for solid mechanics example using PETSc #ifndef MANUFACTURED_TRUE_H #define MANUFACTURED_TRUE_H #include #include // ----------------------------------------------------------------------------- // True solution for linear elasticity manufactured solution // ----------------------------------------------------------------------------- CEED_QFUNCTION(MMSTrueSoln)(void *ctx, const CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) { // Inputs const CeedScalar *coords = in[0]; // Outputs CeedScalar *true_soln = out[0]; // Quadrature Point Loop CeedPragmaSIMD for (CeedInt i=0; i