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