1*9ba83ac0SJeremy L Thompson // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 23f919cbcSJeremy L Thompson // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 33f919cbcSJeremy L Thompson // 43f919cbcSJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause 53f919cbcSJeremy L Thompson // 63f919cbcSJeremy L Thompson // This file is part of CEED: http://github.com/ceed 73f919cbcSJeremy L Thompson 83f919cbcSJeremy L Thompson #include <ceed/types.h> 93f919cbcSJeremy L Thompson mass(void * ctx,const CeedInt Q,const CeedScalar * const * in,CeedScalar * const * out)103f919cbcSJeremy L ThompsonCEED_QFUNCTION(mass)(void *ctx, const CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) { 113f919cbcSJeremy L Thompson const CeedScalar *u = in[0], *rho = in[1]; 123f919cbcSJeremy L Thompson CeedScalar *v = out[0]; 133f919cbcSJeremy L Thompson 143f919cbcSJeremy L Thompson // Quadrature point loop 153f919cbcSJeremy L Thompson CeedPragmaSIMD for (CeedInt i = 0; i < Q; i++) { v[i] = rho[i] * u[i]; } 163f919cbcSJeremy L Thompson return 0; 173f919cbcSJeremy L Thompson } 18