xref: /libCEED/python/tests/setup-qfunctions.py (revision 0ef725981a32b9079ff6c5100673b913b8f4d7c0)
1*0ef72598Sjeremylt# Copyright (c) 2017-2018, Lawrence Livermore National Security, LLC.
2*0ef72598Sjeremylt# Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707.
3*0ef72598Sjeremylt# All Rights reserved. See files LICENSE and NOTICE for details.
4*0ef72598Sjeremylt#
5*0ef72598Sjeremylt# This file is part of CEED, a collection of benchmarks, miniapps, software
6*0ef72598Sjeremylt# libraries and APIs for efficient high-order finite element and spectral
7*0ef72598Sjeremylt# element discretizations for exascale applications. For more information and
8*0ef72598Sjeremylt# source code availability see http://github.com/ceed.
9*0ef72598Sjeremylt#
10*0ef72598Sjeremylt# The CEED research is supported by the Exascale Computing Project 17-SC-20-SC,
11*0ef72598Sjeremylt# a collaborative effort of two U.S. Department of Energy organizations (Office
12*0ef72598Sjeremylt# of Science and the National Nuclear Security Administration) responsible for
13*0ef72598Sjeremylt# the planning and preparation of a capable exascale ecosystem, including
14*0ef72598Sjeremylt# software, applications, hardware, advanced system engineering and early
15*0ef72598Sjeremylt# testbed platforms, in support of the nation's exascale computing imperative.
16*0ef72598Sjeremylt
17*0ef72598Sjeremyltimport os
18*0ef72598Sjeremyltfrom distutils.core import setup, Extension
19*0ef72598Sjeremyltimport libceed
20*0ef72598SjeremyltCEED_DIR = os.path.dirname(libceed.__file__)
21*0ef72598Sjeremylt
22*0ef72598Sjeremylt# ------------------------------------------------------------------------------
23*0ef72598Sjeremylt# Setup
24*0ef72598Sjeremylt# ------------------------------------------------------------------------------
25*0ef72598Sjeremyltqf_module = Extension("libceed_qfunctions",
26*0ef72598Sjeremylt                      include_dirs=[os.path.join(CEED_DIR, 'include')],
27*0ef72598Sjeremylt                      sources=["libceed-qfunctions.c"],
28*0ef72598Sjeremylt                      extra_compile_args=["-O3", "-std=c99",
29*0ef72598Sjeremylt                                          "-Wno-unused-variable",
30*0ef72598Sjeremylt                                          "-Wno-unused-function"])
31*0ef72598Sjeremylt
32*0ef72598Sjeremyltsetup(name="libceed_qfunctions",
33*0ef72598Sjeremylt      description="libceed qfunction pointers",
34*0ef72598Sjeremylt      ext_modules=[qf_module])
35*0ef72598Sjeremylt
36*0ef72598Sjeremylt# ------------------------------------------------------------------------------
37