| /libCEED/examples/petsc/ |
| H A D | Makefile | 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. 4 # SPDX-License-Identifier: BSD-2-Clause 9 -include $(COMMON) 12 # PETSC_ARCH - for example when using PETSc installed through Spack. 17 CC = $(call pkgconf, --variable=ccompiler $(PETSc.pc) $(ceed.pc)) 18 CFLAGS = -std=c11 \ 19 $(call pkgconf, --variable=cflags_extra $(PETSc.pc)) \ 20 $(call pkgconf, --cflags-only-other $(PETSc.pc)) \ 22 CPPFLAGS = $(call pkgconf, --cflags-only-I $(PETSc.pc) $(ceed.pc)) \ [all …]
|
| /libCEED/examples/solids/ |
| H A D | Makefile | 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. 4 # SPDX-License-Identifier: BSD-2-Clause 9 -include $(COMMON) 12 # PETSC_ARCH - for example when using PETSc installed through Spack. 17 CC = $(call pkgconf, --variable=ccompiler $(PETSc.pc) $(ceed.pc)) 18 CFLAGS = -std=c11 \ 19 $(call pkgconf, --variable=cflags_extra $(PETSc.pc)) \ 20 $(call pkgconf, --cflags-only-other $(PETSc.pc)) \ 22 CPPFLAGS = $(call pkgconf, --cflags-only-I $(PETSc.pc) $(ceed.pc)) \ [all …]
|
| /libCEED/examples/fluids/ |
| H A D | Makefile | 2 # the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights 6 # libraries and APIs for efficient high-order finite element and spectral 10 # The CEED research is supported by the Exascale Computing Project (17-SC-20-SC) 18 -include $(CONFIG) 20 -include $(COMMON) 26 CC = $(call pkgconf, --variable=ccompiler $(PETSc.pc) $(ceed.pc)) 27 CFLAGS = -std=c11 \ 28 $(call pkgconf, --variable=cflags_extra $(PETSc.pc)) \ 29 $(call pkgconf, --cflags-only-other $(PETSc.pc)) \ 31 CPPFLAGS = $(call pkgconf, --cflags-only-I $(PETSc.pc) $(ceed.pc)) \ [all …]
|
| H A D | conv_plot.py | 4 # Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707. 8 # libraries and APIs for efficient high-order finite element and spectral 12 # The CEED research is supported by the Exascale Computing Project 17-SC-20-SC, 28 parser.add_argument('-f', 51 ax.loglog(h, E, 'o', color=colors[i]) 52 ax.loglog(h, H, '--', color=colors[i], label='O(h$^' + str(p) + '$)')
|
| /libCEED/doc/sphinx/ |
| H A D | Makefile | 6 SPHINXBUILD = sphinx-build 13 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 16 sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 20 # Catch-all target: route all unknown targets to Sphinx using the new 21 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 23 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
| /libCEED/doc/sphinx/source/api/ |
| H A D | index.rst | 21 U -->|wrap data| V 22 U(High-level user code) -->|apply| O 24 O(CeedOperator) --> E(CeedElemRestriction) 25 O --> B(CeedBasis) 26 O --> Q(CeedQFunction) 27 B --> V(CeedVector) 28 O --> V 29 E --> V 30 Q --> V 32 Q --> UQ(User's physics) [all …]
|
| /libCEED/rust/libceed-sys/c-src/ |
| H A D | Makefile | 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. 4 # SPDX-License-Identifier: BSD-2-Clause 8 # ------------------------------------------------------------ 10 # ------------------------------------------------------------ 14 -include $(CONFIG) 18 -include $(COMMON) 23 # Cancel built-in and old-fashioned implicit rules which we don't use 29 @mkdir -p $(@D) 35 DARWIN := $(filter Darwin,$(shell uname -s)) [all …]
|
| /libCEED/ |
| H A D | Makefile | 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. 4 # SPDX-License-Identifier: BSD-2-Clause 8 # ------------------------------------------------------------ 10 # ------------------------------------------------------------ 14 -include $(CONFIG) 18 -include $(COMMON) 23 # Cancel built-in and old-fashioned implicit rules which we don't use 29 @mkdir -p $(@D) 35 DARWIN := $(filter Darwin,$(shell uname -s)) [all …]
|
| H A D | .gitlab-ci.yml | 1 # ---------------------------------------------------------------------------------------- 3 # ---------------------------------------------------------------------------------------- 5 - test:cpu-and-tidy 6 - test:gpu-and-float 13 # ---------------------------------------------------------------------------------------- 15 # ---------------------------------------------------------------------------------------- 16 noether-asan: 17 stage: test:cpu-and-tidy 19 - cpu 24 - export COVERAGE=0 CC=gcc CXX=g++ FC=gfortran [all …]
|
| H A D | .gitignore | 8 *.o 83 .ccls-cache 94 .auctex-auto/
|
| /libCEED/examples/ceed/ |
| H A D | Makefile | 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. 4 # SPDX-License-Identifier: BSD-2-Clause 8 OPT ?= -O -g 12 CEED_FLAGS ?= -I$(CEED_DIR)/include -std=c11 $(OPT) 13 CEED_LIBS ?= -Wl,-rpath,$(abspath $(CEED_DIR)/lib) -L$(CEED_DIR)/lib -lceed -lm 24 # Remove built-in rules 29 $(LINK.c) $(CEED_FLAGS) $(CEED_LDFLAGS) $< -o $@ $(CEED_LIBS) 32 rm -f *~ $(EXAMPLES) 33 rm -rf *.dSYM *.TVD.*breakpoints
|
| /libCEED/examples/rust-qfunctions/ |
| H A D | Makefile | 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. 4 # SPDX-License-Identifier: BSD-2-Clause 8 OPT ?= -O -g 12 CEED_FLAGS ?= -I$(CEED_DIR)/include -std=c11 $(OPT) 13 CEED_LIBS ?= -Wl,-rpath,$(abspath $(CEED_DIR)/lib) -L$(CEED_DIR)/lib -lceed -L$(CEED_DIR)/examples/… 24 # Remove built-in rules 28 ex1-volume: ex1-volume.c 29 …cargo +nightly build --release --manifest-path ex1-volume-rs/Cargo.toml --config ex1-volume-rs/.ca… 30 …) $(CEED_LDFLAGS) $(abspath $<) -o $@ $(CEED_LIBS) -L$(CEED_DIR)/examples/rust-qfunctions/ex1-volu… [all …]
|
| /libCEED/examples/mfem/ |
| H A D | Makefile | 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. 4 # SPDX-License-Identifier: BSD-2-Clause 9 -include $(COMMON) 11 OPT ?= -O -g 15 CEED_FLAGS ?= -I$(CEED_DIR)/include $(OPT) 16 CEED_LIBS ?= -Wl,-rpath,$(abspath $(CEED_DIR)/lib) -L$(CEED_DIR)/lib -lceed 22 MFEM_DEF = -DMFEM_DIR="\"$(abspath $(MFEM_DIR))\"" 25 -include $(wildcard $(CONFIG_MK)) 40 $(call quiet,MFEM_CXX) $(CEED_FLAGS) $(MFEM_FLAGS) $(MFEM_DEF) $(abspath $<) -o $@ \ [all …]
|
| H A D | bp3.cpp | 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. 4 // SPDX-License-Identifier: BSD-2-Clause 15 // object constructed based on a command line argument. (-ceed). 27 // ./bp3 -ceed /cpu/self 28 // ./bp3 -ceed /gpu/cuda 29 // ./bp3 -m ../../../mfem/data/fichera.mesh -o 4 30 // ./bp3 -m ../../../mfem/data/square-disc-nurbs.mesh -o 6 31 // ./bp3 -m ../../../mfem/data/inline-segment.mesh -o 8 44 static const double x[3] = {-0.32, 0.15, 0.24}; in solution() [all …]
|
| H A D | bp1.cpp | 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. 4 // SPDX-License-Identifier: BSD-2-Clause 12 // The example reads a mesh from a file and solves a simple linear system with a mass matrix (L2-pr… 15 // All libCEED objects use a Ceed device object constructed based on a command line argument (-ceed… 27 // ./bp1 -ceed /cpu/self 28 // ./bp1 -ceed /gpu/cuda 29 // ./bp1 -m ../../../mfem/data/fichera.mesh 30 // ./bp1 -m ../../../mfem/data/star.vtk -o 3 31 // ./bp1 -m ../../../mfem/data/inline-segment.mesh -o 8 [all …]
|
| /libCEED/examples/python/ |
| H A D | tutorial-2-elemrestriction.ipynb | 9 …ithub.com/CEED/libCEED/), the low-level API library for efficient high-order discretization method… 11 …"While libCEED's focus is on high-order finite/spectral element method implementations, the approa… 29 "! python -m pip install libceed" 38 …documentation](https://libceed.org/en/latest/libCEEDapi.html#finite-element-operator-decomposition… 55 "# x -- x -- x -- x\n", 56 "# 10 -- 11 -- 12 -- 13\n", 59 "# x -- x | x -- x | x -- x\n", 60 "# 10 -- 11 | 11 -- 12 | 12 -- 13\n", 101 "# x -- o -- o -- x -- o -- o -- x -- o -- o -- x\n", 125 …oints or for vectors stored in the [E-vector](https://libceed.org/en/latest/libCEEDapi.html#finite… [all …]
|
| H A D | tutorial-6-shell.ipynb | 9 …ithub.com/CEED/libCEED/), the low-level API library for efficient high-order discretization method… 11 …"While libCEED's focus is on high-order finite/spectral element method implementations, the approa… 21 "uses high-order finite elements/spectral elements, namely, the high-order Lagrange\n", 22 "polynomials defined over $P$ non-uniformly spaced nodes, the\n", 23 "Gauss-Legendre-Lobatto (GLL) points, and quadrature points $\\{q_i\\}_{i=1}^Q$, with\n", 25 "or Gauss-Lobatto quadratures, that are built in the library).\n", 34 "$\\boldsymbol{X}=(X,Y,Z) \\equiv (X_1,X_2,X_3) \\in I=[-1,1]^3$\n", 37 "### Ex1-Volume\n", 42 "simple usage of libCEED to compute the volume of a given body using a matrix-free\n", 167 "Now run `ex1-volume` by running" [all …]
|
| /libCEED/doc/papers/joss/ |
| H A D | paper.md | 1 --- 2 title: 'libCEED: Fast algebra for high-order element-based discretizations' 4 - high-performance computing 5 - high-order methods 6 - finite elements 7 - spectral elements 8 - matrix-free 10 - name: Jed Brown 11 orcid: 0000-0002-9945-0639 13 - name: Ahmad Abdelfattah [all …]
|
| H A D | paper.bib | 6 Title = {Efficient Nonlinear Solvers for Nodal High-Order Finite Elements in 3D}, 8 doi = {10.1007/s10915-010-9396-8}, 11 @misc{C99-lang, 12 title={ISO/IEC 9899: 1999 Programming Languages-C}, 18 @article{CEED-ECP-paper, 31 Camier, Jean-Sylvain and 37 Lan, Yu-Hsiang and 49 title = {Efficient Exascale Discretizations: High-Order Finite Element Methods}, 88 Camier, Jean-Sylvain and 112 capabilities of CEED-enabled ECP applications on [all …]
|
| /libCEED/.github/workflows/ |
| H A D | c-fortran-test-style.yml | 6 - main 13 os: [ubuntu-24.04] 16 runs-on: ${{ matrix.os }} 19 - name: Environment setup 21 - name: Install clang-format 23 wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - 24 sudo add-apt-repository 'deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main' 25 sudo apt update && sudo apt install clang-format-19 26 - name: C style 32 make format-c -j CLANG_FORMAT=clang-format-19 && git diff --exit-code
|
| /libCEED/examples/fluids/meshes/ |
| H A D | Makefile | 3 ALL = $(foreach q,1,$(foreach n,08 12 20 40,cylinder-q$(q)-n$(n).msh)) 7 cylinder-q1-n20.msh: 9 cylinder-q1-n08.msh: GMSH_FLAGS = -order 1 -setnumber N 08 -setnumber Rb 0.7 10 cylinder-q1-n12.msh: GMSH_FLAGS = -order 1 -setnumber N 12 -setnumber Rb 0.8 11 cylinder-q1-n20.msh: GMSH_FLAGS = -order 1 -setnumber N 20 12 cylinder-q1-n40.msh: GMSH_FLAGS = -order 1 -setnumber N 40 13 cylinder-q2-n20.msh: GMSH_FLAGS = -order 2 -setnumber N 20 14 cylinder-q2-n40.msh: GMSH_FLAGS = -order 2 -setnumber N 40 15 cylinder-q1-n12-recirc.msh: GMSH_FLAGS = -order 1 -setnumber N 12 -setnumber H 1 -setnumber xL 1 -s… 18 $(GMSH) -3 $(GMSH_FLAGS) $< -o $@ [all …]
|
| /libCEED/backends/magma/tuning/ |
| H A D | Makefile | 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. 4 # SPDX-License-Identifier: BSD-2-Clause 9 -include $(COMMON) 14 CPPFLAGS ?= -I$(CEED_DIR)/include 15 LDLIBS ?= -Wl,-rpath,$(abspath $(CEED_DIR)/lib) -L$(CEED_DIR)/lib -lceed -lm 23 $(call quiet,CXX) $(CPPFLAGS) $(CXXFLAGS) $(abspath $<) -o $@ \ 38 $(RM) -r tuning output-nb-*.txt
|
| /libCEED/benchmarks/ |
| H A D | postprocess_plot.py | 3 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 4 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 6 # SPDX-License-Identifier: BSD-2-Clause 16 log_y = 0 # use log scale on the y-axis? 17 x_range = (1e1, 4e6) # plot range for the x-axis; comment out for auto 18 y_range = (0, 2e9) # plot range for the y-axis; comment out for auto 33 rcParams['font.sans-serif'].insert(0, 'Noto Sans') 34 rcParams['font.sans-serif'].insert(1, 'Open Sans') 51 test_short = test.strip().split()[0] + ' BP' + test.strip().split()[-1] 115 plot(d[:, 0], d[:, 2], 'o-', color=colors[i % cm_size], [all …]
|
| /libCEED/backends/cuda/ |
| H A D | ceed-cuda-compile.cpp | 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. 4 // SPDX-License-Identifier: BSD-2-Clause 8 #include "ceed-cuda-compile.h" 12 #include <ceed/jit-tools.h> 28 #include "ceed-cuda-common.h" 44 //------------------------------------------------------------------------------ 46 //------------------------------------------------------------------------------ 64 //------------------------------------------------------------------------------ 66 //------------------------------------------------------------------------------ [all …]
|
| /libCEED/backends/sycl/ |
| H A D | ocloc_api.h | 1 //===------- ocloc_api.h --------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 10 // https://github.com/intel/compute-runtime/blob/master/shared/offline_compiler/source/ocloc_api.h 35 /// at https://github.com/intel/compute-runtime. 38 /// Remaining params represent I/O. 47 /// \param NumSources is the number of in-memory representations 50 /// \param DataSources is an array of in-memory representations 53 /// \param LenSources is an array of sizes of in-memory representations 56 /// \param NameSources is an array of names of in-memory representations [all …]
|