// 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 #ifndef bps_h #define bps_h #include #include #ifndef M_PI #define M_PI 3.14159265358979323846 #endif // ***************************************************************************** // BP 1 // ***************************************************************************** CEED_QFUNCTION(masssetupf)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) { CeedScalar *qdata = out[0], *rhs = out[1]; const CeedScalar *x = in[0]; const CeedScalar *J = in[1]; const CeedScalar *w = in[2]; // Quadrature Point Loop for (CeedInt i=0; i