xref: /libCEED/tests/t406-qfunction-helper.h (revision 3d8e882215d238700cdceb37404f76ca7fa24eaa)
1*3d8e8822SJeremy L Thompson // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2*3d8e8822SJeremy L Thompson // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3ccec5866SJeremy L Thompson //
4*3d8e8822SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause
5ccec5866SJeremy L Thompson //
6*3d8e8822SJeremy L Thompson // This file is part of CEED:  http://github.com/ceed
7ccec5866SJeremy L Thompson 
8ccec5866SJeremy L Thompson #ifndef _helper_h
9ccec5866SJeremy L Thompson #define _helper_h
10ccec5866SJeremy L Thompson 
11ccec5866SJeremy L Thompson CEED_QFUNCTION_HELPER CeedScalar times_two(CeedScalar x) {
12ccec5866SJeremy L Thompson   return 2 * x;
13ccec5866SJeremy L Thompson }
14ccec5866SJeremy L Thompson 
15ccec5866SJeremy L Thompson CEED_QFUNCTION_HELPER CeedScalar times_three(CeedScalar x) {
16ccec5866SJeremy L Thompson   return 3 * x;
17ccec5866SJeremy L Thompson }
18ccec5866SJeremy L Thompson 
19ccec5866SJeremy L Thompson #endif
20