xref: /libCEED/tests/t590-operator.h (revision 5aed82e4fa97acf4ba24a7f10a35f5303a6798e0)
1*5aed82e4SJeremy L Thompson // Copyright (c) 2017-2024, 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 
848acf710SJeremy L Thompson #include <ceed.h>
948acf710SJeremy L Thompson 
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