Home
last modified time | relevance | path

Searched +full:format +full:- +full:c (Results 1 – 25 of 49) sorted by relevance

12

/libCEED/.github/workflows/
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
/libCEED/backends/sycl/
H A Donline_compiler.hpp1 //===------- online_compiler.hpp - Online source compilation service ------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
21 spir_v = 0 // the only format supported for now
78 /// given compiled code format. Produces 64-bit device code.
79 /// The created compiler is "optimistic" - it assumes all applicable SYCL
90 /// given compiled code format. Produces 64-bit device code.
92 /// contradictory or not supported - e.g. if the source language is not
109 /// Compiles given in-memory \c Lang source to a binary blob. Blob format,
118 /// Sets the compiled code format of the compilation target and returns *this.
[all …]
/libCEED/rust/libceed-sys/
H A Dbuild.rs19 .arg(format!("prefix={}", out_dir.to_string_lossy())) in main()
20 .arg(format!( in main()
24 .arg(format!( in main()
30 .current_dir("c-src"); in main()
49 println!("cargo:rerun-if-changed=c-src/include/ceed.h"); in main()
50 println!("cargo:rerun-if-changed=c-src/include/ceed/types.h"); in main()
51 println!("cargo:rerun-if-changed=c-src/Makefile"); in main()
52 if Path::new("c-src/config.mk").is_file() { in main()
53 println!("cargo:rerun-if-changed=c-src/config.mk"); in main()
62 .header("c-src/include/ceed.h") in main()
[all …]
/libCEED/tests/
H A Dt406-qfunction-helper.h1 // 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 // clang-format off
11 // clang-format on
13 // Note - ceed/types.h should be used over ceed.h
17 #include "./t406-qfunction-scales.h"
19 // Test include via -I....
20 #include <fake-sys-include.h>
H A Dt406-qfunction.h1 // 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 // clang-format off
10 // Note - ceed/types.h should be used over ceed.h
12 // Note - system headers like math.h and std*.h should be guarded
17 #include "t406-qfunction-helper.h"
20 #include "../tests/t406-qfunction-helper.h"
22 #include "output/../../tests/t406-qfunction-helper.h"
23 # include "t406-qfunction-scales.h"
[all …]
H A Dt319-basis.h1 // 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
10 // Interpolation matrices for cell-to-face of Q1 hexahedral element onto it's "5" face (in PETSc)
11 // Nodes are at Gauss-Lobatto points and quadrature points are Gauss, all over [-1,1] domain range
19 …{{-0.31100423396407312, 0.31100423396407312, -0.083333333333333343, 0.083333333333333343, -0.08333…
20 -0.022329099369260232, 0.022329099369260232},
21 …{-0.083333333333333343, 0.083333333333333343, -0.31100423396407312, 0.31100423396407312, -0.022329…
22 -0.083333333333333343, 0.083333333333333343},
23 …{-0.083333333333333343, 0.083333333333333343, -0.022329099369260232, 0.022329099369260232, -0.3110…
[all …]
/libCEED/
H A DMakefile1 # 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 Dsetup.py1 # Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
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,
16 # pylint: disable=no-name-in-module,import-error,unused-variable
21 # ------------------------------------------------------------------------------
23 # ------------------------------------------------------------------------------
53 '-j{}'.format(nproc),
54 '--always-make',
66 arise in high-order element-based discretization of partial differential
[all …]
H A DDoxyfile10 # The format is:
20 # doxygen -x [configFile]
24 # doxygen -x_noenv [configFile]
26 #---------------------------------------------------------------------------
28 #---------------------------------------------------------------------------
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
40 # double-quotes, unless you are using Doxywizard) that should identify the
74 # sub-directories (in 2 levels) under the output directory of each output format
[all …]
H A DCONTRIBUTING.md4 <!---
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`.
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 …
24 … and support it, their names are included in the automatically generated user-manual documentation.
[all …]
/libCEED/rust/libceed-sys/c-src/
H A DMakefile1 # 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/backends/magma/tuning/
H A Dtuning.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
16 // clang-format off
18 // and quadrature rules of degree 2p and 2p - 2. These can be expanded to more element types and qu…
26 // clang-format on
79 data_interp_n = std::chrono::duration_cast<Duration>(Clock::now() - start).count(); in main()
91 data_interp_t = std::chrono::duration_cast<Duration>(Clock::now() - start).count(); in main()
112 data_grad_n = std::chrono::duration_cast<Duration>(Clock::now() - start).count(); in main()
124 data_grad_t = std::chrono::duration_cast<Duration>(Clock::now() - start).count(); in main()
[all …]
/libCEED/julia/LibCEED.jl/docs/
H A Dmake.jl4 format=Documenter.HTML(prettyurls=false),
21 "C.md",
27 repo="github.com/CEED/libCEED-julia-docs.git",
/libCEED/julia/LibCEED.jl/src/
H A DBasis.jl9 Base.getindex(::BasisNone) = C.CEED_BASIS_NONE[]
17 - [`create_tensor_h1_lagrange_basis`](@ref)
18 - [`create_tensor_h1_basis`](@ref)
19 - [`create_h1_basis`](@ref)
20 - [`create_hdiv_basis`](@ref)
21 - [`create_hcurl_basis`](@ref)
24 ref::RefValue{C.CeedBasis}
34 destroy(b::Basis) = C.CeedBasisDestroy(b.ref) # COV_EXCL_LINE
36 Base.show(io::IO, ::MIME"text/plain", b::Basis) = ceed_show(io, b, C.CeedBasisView)
41 Create a tensor-product Lagrange basis.
[all …]
H A DCuda.jl4 #! format: off
16 #! format: on
46 C.CeedVectorSetArray(v[], mtype, cmode, ptr)
98 q + (j - 1)*Q,
111 q + (j - 1)*Q,
137 for q = (ti.x+(bi.x-1)*bd.x):inc:Q
/libCEED/doc/img/
H A Dlogo.svg1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
5 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
20 <dc:format>image/svg+xml</dc:format>
34 style="opacity:1;stroke-width:7;stroke-miterlimit:4;stroke-dasharray:none">
37 d="m 514.34126,114.73544 -120.83128,61.42139 120.9102,69.28288 120.76393,-69.12663 z"
38 …5858;fill-opacity:1;stroke:#ffffff;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stro…
41 …d="m 514.32548,385.88248 114.31843,-73.02922 6.5402,-136.54018 -89.97644,51.50353 -30.78749,17.623…
42 …9898;fill-opacity:1;stroke:#ffffff;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stro…
45 d="m 399.9257,312.8674 114.39978,73.01508 0.0947,-140.44277 -120.9102,-69.28288 z"
46 …1b1b;fill-opacity:1;stroke:#ffffff;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stro…
[all …]
/libCEED/interface/
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>
87 Calling @ref CeedRequestWait() on a `NULL` request is a no-op.
91 @return An error code: 0 - success, otherwise - failure
102 /// ----------------------------------------------------------------------------
104 /// ----------------------------------------------------------------------------
117 …lues are preferred in case the resource requested by @ref CeedInit() has non-unique best prefix ma…
119 @return An error code: 0 - success, otherwise - failure
[all …]
H A Dceed-config.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>
17 @brief Get output of `git describe --dirty` from build time.
24 If `git describe --always --dirty` fails, the string `"unknown"` will be provided.
31 @return An error code: 0 - success, otherwise - failure
48 @return An error code: 0 - success, otherwise - failure
51 ceed->cuda_compile_with_clang = is_clang; in CeedSetIsClang()
65 @return An error code: 0 - success, otherwise - failure
[all …]
/libCEED/include/ceed/
H A Dceed.h1 /// 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 /// @defgroup CeedBasis CeedBasis: fully discrete finite element-like objects
17 /// @defgroup CeedOperator CeedOperator: composed FE-type operations on vectors
29 …ended to be used by backend developers of libCEED and can generally be found in `"ceed-backend.h"`.
31 …intended to be used by library developers of libCEED and can generally be found in `"ceed-impl.h"`.
47 #define CEED_EXTERN extern "C" CEED_VISIBILITY(default)
69 /// Non-blocking Ceed interfaces return a CeedRequest.
97 /// Handle for object describing FE-type operators acting on vectors
[all …]
/libCEED/examples/rust/ex2-surface-vector/src/
H A Dmain.rs1 // 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
11 // area of a 3D body using matrix-free application of a diffusion operator.
16 // The example has no dependencies, and is designed to be self-contained. For
21 // line argument (-ceed).
30 // ----------------------------------------------------------------------------
32 // ----------------------------------------------------------------------------
33 fn main() -> libceed::Result<()> { in main()
40 fn example_2_vector(options: opt::Opt) -> libceed::Result<()> { in example_2_vector()
[all …]
/libCEED/examples/nek/bps/
H A Dbps.usr1 C Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors
2 C All Rights Reserved. See the top-level COPYRIGHT and NOTICE files for details.
3 C
4 C SPDX-License-Identifier: (BSD-2-Clause)
5 C
6 C This file is part of CEED: http://github.com/ceed
8 C> @file
9 C> Mass and diffusion operators examples using Nek5000
10 C_TESTARGS(name="BP1") -c {ceed_resource} -e bp1 -n 1 -b 4 -test
11 C_TESTARGS(name="BP3") -c {ceed_resource} -e bp3 -n 1 -b 4 -test
[all …]
/libCEED/examples/rust/ex1-volume-vector/src/
H A Dmain.rs1 // 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
11 // 3D body using matrix-free application of a mass operator. Arbitrary mesh and
15 // The example has no dependencies, and is designed to be self-contained. For
20 // line argument (-ceed).
29 // ----------------------------------------------------------------------------
31 // ----------------------------------------------------------------------------
32 fn main() -> libceed::Result<()> { in main()
39 fn example_1_vector(options: opt::Opt) -> libceed::Result<()> { in example_1_vector()
[all …]
/libCEED/doc/sphinx/source/
H A DCONTRIBUTING.md4 <!---
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`.
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 …
24 … and support it, their names are included in the automatically generated user-manual documentation.
[all …]
/libCEED/examples/fluids/
H A DREADME.md1 ## libCEED: Navier-Stokes Example
3 This page provides a description of the Navier-Stokes example for the libCEED library, based on PET…
7 The Navier-Stokes problem solves the compressible Navier-Stokes equations in three dimensions using…
10 The main Navier-Stokes solver for libCEED is defined in [`navierstokes.c`](navierstokes.c) with dif…
21 ./navierstokes -ceed [ceed] -problem [problem type] -degree [degree]
26 <!-- fluids-inclusion -->
28 The Navier-Stokes mini-app is controlled via command-line options.
31 :::{list-table} Common Runtime Options
32 :header-rows: 1
34 * - Option
[all …]
/libCEED/examples/rust/ex2-surface/src/
H A Dmain.rs1 // 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
11 // area of a 3D body using matrix-free application of a diffusion operator.
15 // The example has no dependencies, and is designed to be self-contained. For
20 // line argument (-ceed).
29 // ----------------------------------------------------------------------------
31 // ----------------------------------------------------------------------------
32 fn main() -> libceed::Result<()> { in main()
39 fn example_2(options: opt::Opt) -> libceed::Result<()> { in example_2()
[all …]

12