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 CEED_QFUNCTION_HELPER CeedScalar times_two(CeedScalar x) { 12 return 2 * x; 13 } 14 15 CEED_QFUNCTION_HELPER CeedScalar times_three(CeedScalar x) { 16 return 3 * x; 17 } 18 19 #endif 20