| /libCEED/examples/ |
| 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 CEED_FLAGS ?= -I$(CEED_DIR)/include 19 CEED_LIBS ?= -Wl,-rpath,$(CEED_DIR)/lib -L$(CEED_DIR)/lib -lceed 32 .PHONY: all ceed mfem nek petsc fluids solids clean 34 all: ceed mfem nek petsc fluids solids target 37 make CEED_DIR=$(CEED_DIR) -C ceed all 40 make CEED_DIR=$(CEED_DIR) MFEM_DIR=$(MFEM_DIR) -C mfem all 44 # such as when calling `make prove-all -j2` for the top level Makefile. [all …]
|
| H A D | bps.md | 6 :start-after: <!-- bps-inclusion --> 7 :end-before: <!-- bps-exclusion --> 10 (mass-operator)= 14 …eak form on a Hilbert space $V^p \subset H^1$, i.e., find $u \in V^p$ such that for all $v \in V^p$ 18 $$ (eq-general-weak-form) 26 Following the standard finite/spectral element approach, we formally expand all functions in terms … 33 $$ (eq-nodal-values) 36 Inserting the expressions {eq}`eq-nodal-values` into {eq}`eq-general-weak-form`, we obtain the inne… 40 $$ (eq-inner-prods) 42 Here, we have introduced the mass matrix, $M$, and the right-hand side, $\bm b$, [all …]
|
| /libCEED/doc/sphinx/source/ |
| H A D | gpu.md | 13 The entire contents of this source file and all included files are used during JiT compilation for … 16 These source file must only contain syntax constructs supported by C99 and all targeted backends (i… 18 All source files must be at the provided filepath at runtime for JiT to function. 23 …edVector` and `CeedQFunctionContext` have read-only and read-write accessors, and `CeedVector` all… 24 Read-only access of `CeedVector` and `CeedQFunctionContext` memory spaces must be respected for to … 25 Write-only access of `CeedVector` memory spaces asserts that all data in the `CeedVector` is invali… 27 …all input arrays are read-only and all output arrays are write-only and the {c:type}`CeedQFunction… 28 …er` have read-write access for `CeedQFunctionContext` data, unless {c:func}`CeedQFunctionSetContex… 30 The `/cpu/self/memcheck` backends explicitly verify read-only and write-only memory access assumpti…
|
| H A D | libCEEDdev.md | 12 A new method for the associated libCEED object can be added in `/include/ceed-impl.h`, with a corre… 13 … implementation of the object, typically found in `/backends/[impl]/ceed-[impl]-[object].c`, the d… 24 A Ceed backend is not required to implement all libCeed objects or {ref}`CeedOperator` methods. 27 1. Delegation - Developers may use {c:func}`CeedSetDelegate` to set a general delegate {ref}`Ceed` … 29 …l` backend implements the `CeedTensorContract` object itself but delegates all other functionality… 31 2. Object delegation - Developers may use {c:func}`CeedSetObjectDelegate` to set a delegate {ref}`… 35 3. Operator fallback - Developers may use {c:func}`CeedSetOperatorFallbackCeed` to set a {ref}`Ceed… 38 …allback, the parent backend and fallback backend must use compatible E-vector and Q-vector layouts. 55 The `/cpu/self/ref/blocked` backend updates the {ref}`CeedOperator` to use an E-vector and Q-vector… 68 The CUDA, HIP, and SYCL backend families all follow similar designs. [all …]
|
| H A D | CONTRIBUTING.md | 4 <!--- 5 Please use a pull request to the appropriate branch ('stable' for backward-compatible bug fixes for… 6 --> 7 …e your commits well-organized and [atomic](https://en.wikipedia.org/wiki/Atomic_commit#Atomic_comm… 8 Check that tests (including "examples") pass using `make prove-all`. 11 In typical development, every commit should compile, be covered by the test suite, and pass all tes… 12 …efficiency of reviewing and facilitates use of [`git bisect`](https://git-scm.com/docs/git-bisect). 15 It is useful to create a WIP (work in progress) pull request for any long-running development so th… 20 …-by: Helpful User <helpful@example.com>` or [`Co-authored-by: Snippet Mentor <code.by@comment.com>… 22 If your author information or email becomes inconsistent (look at `git shortlog -se`), please edit … [all …]
|
| H A D | libCEEDapi.md | 5 (theoretical-framework)= 10 In particular, when high-order finite elements or spectral elements are used, the resulting sparse … 11 libCEED provides an interface for matrix-free operator description that enables efficient evaluatio… 15 We first define the $L^2$ inner product between real-valued functions 29 for all $\bm v$ in the corresponding homogeneous space $V_0$, where $\bm f_0$ and $\bm f_1$ contain… 30 …$\bm f_0$ represents all terms in {eq}`residual` which multiply the (possibly vector-valued) test … 31 For an n-component problems in $d$ dimensions, $\bm f_0 \in \mathbb{R}^n$ and $\bm f_1 \in \mathbb{… 49 This sequence of operations highlights an inherent hierarchical structure present in all finite ele… 51 …inuous ($H^1$) elements, where we use the notions **T-vector**, **L-vector**, **E-vector** and **Q… 55 - Subdomain restriction $\bm{P}$ [all …]
|
| /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)) macro 5 all : $(ALL) target 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… [all …]
|
| /libCEED/include/ceed/jit-source/magma/ |
| H A D | magma-common-tensor.h | 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 #include "magma-common-defs.h" 15 // read U or V of a 1D element into shared memory sU[][] or sV[][] -- for all components 28 // write V of a 1D element into global memory from sV[][] -- for all components 40 // sum into V of a 1D element into global memory from sV[][] -- for all components 52 // read U of a 2D element into registers rU[][][] -- for all components of a single dim 53 // dU is assumed to be offset by elem-stride and dim-stride 61 // vec 0 : [u0, u1, u2, ... u_(P-1)] -- contiguous in memory in read_U_2d() [all …]
|
| /libCEED/examples/deal.II/ |
| H A D | .clang-format | 2 # The clang-format (Clang 11) style file used by deal.II. 5 AccessModifierOffset: -2 21 AlwaysBreakAfterReturnType: All 71 - Regex: "deal.II/base/config.h" 72 Priority: -1 74 - Regex: "deal.II/algorithms/.*\\.h" 76 - Regex: "deal.II/arborx/.*\\.h" 78 - Regex: "deal.II/base/.*\\.h" 80 - Regex: "deal.II/boost_adaptors/.*\\.h" 82 - Regex: "deal.II/differentiation/.*\\.h" [all …]
|
| /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 20 .PHONY: all clean 22 all: $(EXAMPLES) target 24 # Remove built-in rules 29 $(LINK.c) $(CEED_FLAGS) $(CEED_LDFLAGS) $< -o $@ $(CEED_LIBS) [all …]
|
| /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/… 20 .PHONY: all clean 22 all: $(EXAMPLES) target 24 # Remove built-in rules 28 ex1-volume: ex1-volume.c [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 20 all: tuning target 23 $(call quiet,CXX) $(CPPFLAGS) $(CXXFLAGS) $(abspath $<) -o $@ \ 38 $(RM) -r tuning output-nb-*.txt 40 .PHONY: all clean
|
| /libCEED/include/ |
| H A D | ceed-fortran-name.h | 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 14 -DUPCASE GS_SETUP, etc. 15 -DUNDERSCORE gs_setup_, etc. 16 …* a prefix for all external (non-FORTRAN) function names for example, -DPREFIX=jl_ transforms fa… 17 …* a prefix for all external FORTRAN function names for example, -DFPREFIX=jlf_ transforms gs_setup…
|
| /libCEED/examples/nek/ |
| 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) 21 ifeq (,$(filter-out undefined default,$(origin CC))) 24 ifeq (,$(filter-out undefined default,$(origin FC))) 33 CEED_FLAGS ?= -I$(CEED_DIR)/include 34 CEED_LIBS ?= -Wl,-rpath,$(CEED_DIR)/lib -L$(CEED_DIR)/lib -lceed 36 .PHONY: all bps clean 38 all: bps target 41 FC=$(FC) CC=$(CC) MPI=$(MPI) NEK5K_DIR=$(NEK5K_DIR) CEED_DIR=$(CEED_DIR) && ./nek-examples.sh -m [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)) 31 .PHONY: all clean [all …]
|
| /libCEED/ |
| H A D | RELEASING.md | 5 In preparing a release, create a branch to hold pre-release commits. 6 We ideally want all release mechanics (for all languages) to be in one commit, which will then be t… 7 (This will change if/when we stop synchronizing releases across all language bindings.) 21 Use `git log --first-parent v0.7..` to get a sense of the pull requests that have been merged and t… 25 Use `make doc-latexpdf` to build a PDF users manual and inspect it for missing references or format… 31 …[ABI compliance checker](https://github.com/lvc/abi-compliance-checker) is a useful tool, as is `n… 36 3. Update and test all the language bindings (see below) within the branch. 43 0. Confirm all the steps above, including all language bindings. 44 1. `git commit -am'libCEED 0.8.1'` 45 More frequently, this is amending the commit message on an in-progress commit, after rebasing if ap… [all …]
|
| H A D | CONTRIBUTING.md | 4 <!--- 5 Please use a pull request to the appropriate branch ('stable' for backward-compatible bug fixes for… 6 --> 7 …e your commits well-organized and [atomic](https://en.wikipedia.org/wiki/Atomic_commit#Atomic_comm… 8 Check that tests (including "examples") pass using `make prove-all`. 11 In typical development, every commit should compile, be covered by the test suite, and pass all tes… 12 …efficiency of reviewing and facilitates use of [`git bisect`](https://git-scm.com/docs/git-bisect). 15 It is useful to create a WIP (work in progress) pull request for any long-running development so th… 20 …-by: Helpful User <helpful@example.com>` or [`Co-authored-by: Snippet Mentor <code.by@comment.com>… 22 If your author information or email becomes inconsistent (look at `git shortlog -se`), please edit … [all …]
|
| H A D | Doxyfile | 6 # All text after a double hash (##) is considered a comment and is placed in 9 # All text after a single hash (#) is considered a comment and will be ignored. 20 # doxygen -x [configFile] 24 # doxygen -x_noenv [configFile] 26 #--------------------------------------------------------------------------- 28 #--------------------------------------------------------------------------- 30 # This tag specifies the encoding used for all characters in the configuration 31 # file that follow. The default is UTF-8 which is also the encoding used for all 35 # The default value is: UTF-8. 37 DOXYFILE_ENCODING = UTF-8 [all …]
|
| /libCEED/include/ceed/ |
| H A D | ceed-f64.h | 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 /// Set base scalar type to FP64. (See CeedScalarType enum in ceed.h for all options.) 20 #define CEED_EPSILON 1e-16
|
| H A D | ceed-f32.h | 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 /// Set base scalar type to FP32. (See CeedScalarType enum in ceed.h for all options.) 20 #define CEED_EPSILON 6e-08
|
| /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 23 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
| /libCEED/interface/ |
| H A D | ceed-register.c | 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 #include "../backends/ceed-backend-list.h" 19 @brief Register all pre-configured backends. 24 @return An error code: 0 - success, otherwise - failure 35 CeedDebugEnv256(CEED_DEBUG_COLOR_SUCCESS, "\n---------- Registering Backends ----------\n"); in CeedRegisterAll() 38 #include "../backends/ceed-backend-list.h" in CeedRegisterAll()
|
| /libCEED/examples/python/ |
| H A D | ex3_volume.py | 2 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 3 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 5 # SPDX-License-Identifier: BSD-2-Clause 14 # python ex3_volume -c /cpu/self 15 # python ex3_volume -c /gpu/cuda 50 print(f" Ceed specification [-c] : {args.ceed}") 51 print(f" Mesh dimension [-d] : {dim}") 52 print(f" Mesh degree [-m] : {mesh_degree}") 53 print(f" Solution degree [-p] : {sol_degree}") 54 print(f" Num. 1D quadr. pts [-q] : {num_qpts}") [all …]
|
| H A D | ex1_volume.py | 2 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 3 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 5 # SPDX-License-Identifier: BSD-2-Clause 14 # python ex1_volume -c /cpu/self 15 # python ex1_volume -c /gpu/cuda 50 print(f" Ceed specification [-c] : {args.ceed}") 51 print(f" Mesh dimension [-d] : {dim}") 52 print(f" Mesh degree [-m] : {mesh_degree}") 53 print(f" Solution degree [-p] : {sol_degree}") 54 print(f" Num. 1D quadr. pts [-q] : {num_qpts}") [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 …]
|