xref: /libCEED/tests/t406-qfunction-helper.h (revision ccec58666b8929dfb32358838fe858499801da8c)
1*ccec5866SJeremy L Thompson // Copyright (c) 2017-2018, Lawrence Livermore National Security, LLC.
2*ccec5866SJeremy L Thompson // Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707.
3*ccec5866SJeremy L Thompson // All Rights reserved. See files LICENSE and NOTICE for details.
4*ccec5866SJeremy L Thompson //
5*ccec5866SJeremy L Thompson // This file is part of CEED, a collection of benchmarks, miniapps, software
6*ccec5866SJeremy L Thompson // libraries and APIs for efficient high-order finite element and spectral
7*ccec5866SJeremy L Thompson // element discretizations for exascale applications. For more information and
8*ccec5866SJeremy L Thompson // source code availability see http://github.com/ceed.
9*ccec5866SJeremy L Thompson //
10*ccec5866SJeremy L Thompson // The CEED research is supported by the Exascale Computing Project 17-SC-20-SC,
11*ccec5866SJeremy L Thompson // a collaborative effort of two U.S. Department of Energy organizations (Office
12*ccec5866SJeremy L Thompson // of Science and the National Nuclear Security Administration) responsible for
13*ccec5866SJeremy L Thompson // the planning and preparation of a capable exascale ecosystem, including
14*ccec5866SJeremy L Thompson // software, applications, hardware, advanced system engineering and early
15*ccec5866SJeremy L Thompson // testbed platforms, in support of the nation's exascale computing imperative.
16*ccec5866SJeremy L Thompson 
17*ccec5866SJeremy L Thompson #ifndef _helper_h
18*ccec5866SJeremy L Thompson #define _helper_h
19*ccec5866SJeremy L Thompson 
20*ccec5866SJeremy L Thompson CEED_QFUNCTION_HELPER CeedScalar times_two(CeedScalar x) {
21*ccec5866SJeremy L Thompson   return 2 * x;
22*ccec5866SJeremy L Thompson }
23*ccec5866SJeremy L Thompson 
24*ccec5866SJeremy L Thompson CEED_QFUNCTION_HELPER CeedScalar times_three(CeedScalar x) {
25*ccec5866SJeremy L Thompson   return 3 * x;
26*ccec5866SJeremy L Thompson }
27*ccec5866SJeremy L Thompson 
28*ccec5866SJeremy L Thompson #endif
29