xref: /libCEED/tests/t406-qfunction-helper.h (revision d4cc18453651bd0f94c1a2e078b2646a92dafdcc)
1*9ba83ac0SJeremy L Thompson // Copyright (c) 2017-2026, 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 
8509d4af6SJeremy L Thompson // Note: testing 'pragma once'
9509d4af6SJeremy L Thompson // clang-format off
10509d4af6SJeremy L Thompson # pragma  once
11509d4af6SJeremy L Thompson // clang-format on
12ccec5866SJeremy L Thompson 
13c0b5abf0SJeremy L Thompson // Note - ceed/types.h should be used over ceed.h
14c9c2c079SJeremy L Thompson #include <ceed.h>
152b730f8bSJeremy L Thompson 
167cbc98eeSJeremy L Thompson // Test include path with "/./"
177cbc98eeSJeremy L Thompson #include "./t406-qfunction-scales.h"
187173c8dcSJeremy L Thompson 
19255dad32SJeremy L Thompson // Test include via -I....
20255dad32SJeremy L Thompson #include <fake-sys-include.h>
21ccec5866SJeremy L Thompson 
times_two(CeedScalar x)22255dad32SJeremy L Thompson CEED_QFUNCTION_HELPER CeedScalar times_two(CeedScalar x) { return FAKE_SYS_SCALE_ONE * SCALE_TWO * x; }
23255dad32SJeremy L Thompson 
times_three(CeedScalar x)24255dad32SJeremy L Thompson CEED_QFUNCTION_HELPER CeedScalar times_three(CeedScalar x) { return FAKE_SYS_SCALE_ONE * SCALE_THREE * x; }
25