xref: /libCEED/tests/t590-operator.h (revision 48acf7109003d10be9ba6e2ea1703bbbf207ad3b)
1*48acf710SJeremy L Thompson // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2*48acf710SJeremy L Thompson // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3*48acf710SJeremy L Thompson //
4*48acf710SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause
5*48acf710SJeremy L Thompson //
6*48acf710SJeremy L Thompson // This file is part of CEED:  http://github.com/ceed
7*48acf710SJeremy L Thompson 
8*48acf710SJeremy L Thompson #include <ceed.h>
9*48acf710SJeremy L Thompson 
10*48acf710SJeremy L Thompson CEED_QFUNCTION(mass)(void *ctx, const CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) {
11*48acf710SJeremy L Thompson   const CeedScalar *u = in[0];
12*48acf710SJeremy L Thompson   CeedScalar       *v = out[0];
13*48acf710SJeremy L Thompson 
14*48acf710SJeremy L Thompson   for (CeedInt i = 0; i < Q; i++) v[i] = u[i];
15*48acf710SJeremy L Thompson   return 0;
16*48acf710SJeremy L Thompson }
17