xref: /libCEED/tests/t590-operator.h (revision d4cc18453651bd0f94c1a2e078b2646a92dafdcc)
1*9ba83ac0SJeremy L Thompson // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
248acf710SJeremy L Thompson // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
348acf710SJeremy L Thompson //
448acf710SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause
548acf710SJeremy L Thompson //
648acf710SJeremy L Thompson // This file is part of CEED:  http://github.com/ceed
748acf710SJeremy L Thompson 
8c0b5abf0SJeremy L Thompson #include <ceed/types.h>
948acf710SJeremy L Thompson 
mass(void * ctx,const CeedInt Q,const CeedScalar * const * in,CeedScalar * const * out)1048acf710SJeremy L Thompson CEED_QFUNCTION(mass)(void *ctx, const CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) {
1148acf710SJeremy L Thompson   const CeedScalar *u = in[0];
1248acf710SJeremy L Thompson   CeedScalar       *v = out[0];
1348acf710SJeremy L Thompson 
1448acf710SJeremy L Thompson   for (CeedInt i = 0; i < Q; i++) v[i] = u[i];
1548acf710SJeremy L Thompson   return 0;
1648acf710SJeremy L Thompson }
17