// 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 /// libCEED QFunctions for diffusion operator example using PETSc #ifndef bp4_h #define bp4_h #include // ----------------------------------------------------------------------------- // This QFunction sets up the rhs and true solution for the problem // ----------------------------------------------------------------------------- CEED_QFUNCTION(SetupDiffRhs3)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) { #ifndef M_PI # define M_PI 3.14159265358979323846 #endif const CeedScalar *x = in[0], *w = in[1]; CeedScalar *true_soln = out[0], *rhs = out[1]; // Quadrature Point Loop CeedPragmaSIMD for (CeedInt i=0; i