Home
last modified time | relevance | path

Searched +full:- +full:- +full:exit +full:- +full:code (Results 1 – 16 of 16) sorted by relevance

/libCEED/.github/workflows/
H A Drelease-notes.yml5 branches-ignore:
6 - main
13 os: [ubuntu-24.04]
15 runs-on: ${{ matrix.os }}
18 - name: Environment setup
20 - name: Check release notes
23 if git diff origin/main --exit-code include/ceed/*; then
25 elif git diff origin/main --exit-code doc/sphinx/source/releasenotes.rst; then
27 exit 1
H A Dc-fortran-test-style.yml6 - 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
H A Dpython-test-with-style.yml6 - main
13 os: [ubuntu-24.04]
15 python-version: ['3.x']
17 runs-on: ${{ matrix.os }}
20 - name: Environment setup
22 - name: Python setup
23 uses: actions/setup-python@v5
25 python-version: ${{ matrix.python-version }}
26 - name: Python dependencies
28 pip install -r requirements.txt
[all …]
H A Djulia-test-with-style.yml6 - main
13 os: [ubuntu-24.04]
14 julia-version: ['1']
16 runs-on: ${{ matrix.os }}
24 - name: Environment setup
26 - name: Julia setup
27 uses: julia-actions/setup-julia@latest
29 version: ${{ matrix.julia-version }}
30 - name: Julia test and style
33 make -j2
[all …]
/libCEED/examples/nek/
H A Dnek-examples.sh4 # the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
8 # libraries and APIs for efficient high-order finite element and spectral
10 # source code availability see http://github.com/ceed
12 # The CEED research is supported by the Exascale Computing Project (17-SC-20-SC)
47 # Exit if being sourced
48 if [[ "${#BASH_ARGV[@]}" -ne "$#" ]]; then
51 nek_exit_cmd=exit
72 -h|-help Print this usage information and exit
73 -c|-ceed Ceed backend to be used for the run (optional, default: /cpu/self)
74 -e|-example Example name (optional, default: bp1)
[all …]
/libCEED/examples/python/
H A Dex3_volume.py2 # 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
37 int: 0 on success, error code on failure
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}")
[all …]
H A Dex1_volume.py2 # 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
37 int: 0 on success, error code on failure
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}")
[all …]
H A Dex2_surface.py2 # 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 ex2_surface.py -c /cpu/self
15 # python ex2_surface.py -c /gpu/cuda
37 int: 0 on success, error code on failure
51 print(f" Ceed specification [-c] : {args.ceed}")
52 print(f" Mesh dimension [-d] : {dim}")
53 print(f" Mesh degree [-m] : {mesh_degree}")
54 print(f" Solution degree [-p] : {sol_degree}")
[all …]
/libCEED/benchmarks/
H A Dbenchmark.sh3 # 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
11 if [[ "${#BASH_ARGV[@]}" -ne "$#" ]]; then
16 exit_cmd=exit
22 num_proc_run=${num_proc_run:-""}
23 num_proc_node=${num_proc_node:-""}
30 mpiexec_np="-np"
44 if [[ -t 1 ]]; then
61 -h|--help print this usage information and exit
[all …]
/libCEED/examples/mfem/
H A Dbp1.cpp1 // 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…
18 // Arbitrary mesh and solution orders in 1D, 2D and 3D are supported from the same code.
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
[all …]
H A Dbp3.cpp1 // 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).
18 // Arbitrary mesh and solution orders in 1D, 2D and 3D are supported from the same code.
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
[all …]
/libCEED/interface/
H A Dceed-preconditioning.c1 // 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-impl.h>
20 /// ----------------------------------------------------------------------------
22 /// ----------------------------------------------------------------------------
33 @return An error code: 0 - success, otherwise - failure
47 if (qf->source_path) { in CeedQFunctionCreateFallback()
48 size_t path_len = strlen(qf->source_path), name_len = strlen(qf->kernel_name); in CeedQFunctionCreateFallback()
51 memcpy(source_path_with_name, qf->source_path, path_len); in CeedQFunctionCreateFallback()
[all …]
H A Dceed.c1 // 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 <ceed-impl.h>
44 The code
46 @code
52 @code
68 @code
87 Calling @ref CeedRequestWait() on a `NULL` request is a no-op.
91 @return An error code: 0 - success, otherwise - failure
[all …]
H A Dceed-elemrestriction.c1 // 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-impl.h>
18 /// ----------------------------------------------------------------------------
20 /// ----------------------------------------------------------------------------
34 @return An error code: 0 - success, otherwise - failure
43 …block_offsets[e * elem_size + k * block_size + j] = offsets[CeedIntMin(e + j, num_elem - 1) * elem… in CeedPermutePadOffsets()
60 @return An error code: 0 - success, otherwise - failure
68 …block_orients[e * elem_size + k * block_size + j] = orients[CeedIntMin(e + j, num_elem - 1) * elem… in CeedPermutePadOrients()
[all …]
/libCEED/
H A D.gitlab-ci.yml1 # ----------------------------------------------------------------------------------------
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 …]
/libCEED/examples/fluids/
H A Dindex.md1 (example-petsc-navier-stokes)=
3 # Compressible Navier-Stokes mini-app
6-dependent Navier-Stokes equations of compressible gas dynamics in a static Eulerian three-dimensi…
7 Moreover, the Navier-Stokes example has been developed using PETSc, so that the pointwise physics (…
9 ## Running the mini-app
12 :start-after: <!-- fluids-inclusion -->
14 ## The Navier-Stokes equations
17 The compressible Navier-Stokes equations in conservative form are
22 …abla \cdot \left( \frac{\bm{U} \otimes \bm{U}}{\rho} + P \bm{I}_3 -\bm\sigma \right) - \rho \bm{b}…
23 …t} + \nabla \cdot \left( \frac{(E + P)\bm{U}}{\rho} -\bm{u} \cdot \bm{\sigma} - k \nabla T \right)…
[all …]