xref: /libCEED/tests/t406-qfunction-helper.h (revision 9ba83ac0e4b1fca39d6fa6737a318a9f0cbc172d)
1 // Copyright (c) 2017-2026, 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 // Note: testing 'pragma once'
9 // clang-format off
10 # pragma  once
11 // clang-format on
12 
13 // Note - ceed/types.h should be used over ceed.h
14 #include <ceed.h>
15 
16 // Test include path with "/./"
17 #include "./t406-qfunction-scales.h"
18 
19 // Test include via -I....
20 #include <fake-sys-include.h>
21 
22 CEED_QFUNCTION_HELPER CeedScalar times_two(CeedScalar x) { return FAKE_SYS_SCALE_ONE * SCALE_TWO * x; }
23 
24 CEED_QFUNCTION_HELPER CeedScalar times_three(CeedScalar x) { return FAKE_SYS_SCALE_ONE * SCALE_THREE * x; }
25