// 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 mass operator example for a vector field on the sphere using PETSc #ifndef bp2sphere_h #define bp2sphere_h #include #include // ----------------------------------------------------------------------------- // This QFunction sets up the rhs and true solution for the problem // ----------------------------------------------------------------------------- CEED_QFUNCTION(SetupMassRhs3)(void *ctx, const CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) { // Inputs const CeedScalar *X = in[0], *q_data = in[1]; // Outputs CeedScalar *true_soln = out[0], *rhs = out[1]; // Context const CeedScalar *context = (const CeedScalar*)ctx; const CeedScalar R = context[0]; // Quadrature Point Loop CeedPragmaSIMD for (CeedInt i=0; i