xref: /libCEED/tests/t406-qfunction-helper.h (revision c9c2c07970382857cc7b4a28d359710237b91a3e)
13d8e8822SJeremy L Thompson // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
23d8e8822SJeremy L Thompson // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3ccec5866SJeremy L Thompson //
43d8e8822SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause
5ccec5866SJeremy L Thompson //
63d8e8822SJeremy 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 
11*c9c2c079SJeremy L Thompson #include <ceed.h>
127173c8dcSJeremy L Thompson #include "t406-qfunction-scales.h"
137173c8dcSJeremy L Thompson 
14ccec5866SJeremy L Thompson CEED_QFUNCTION_HELPER CeedScalar times_two(CeedScalar x) {
157173c8dcSJeremy L Thompson   return SCALE_TWO * x;
16ccec5866SJeremy L Thompson }
17ccec5866SJeremy L Thompson 
18ccec5866SJeremy L Thompson CEED_QFUNCTION_HELPER CeedScalar times_three(CeedScalar x) {
197173c8dcSJeremy L Thompson   return SCALE_THREE * x;
20ccec5866SJeremy L Thompson }
21ccec5866SJeremy L Thompson 
22ccec5866SJeremy L Thompson #endif
23