-
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…3045) * Add struct * Docs * Add default ctor * Docs * Simplify * Docs * Docs * Update demo * Simplify Form * Update docs * Use emplace_back * Store as vector * Update demo * Revert "Update demo" This reverts commit d3b0ac2. * Revert "Store as vector" This reverts commit 2a707a7. * Attept to avoid copy * Try templating * Tidy * Remove sort * Sort * Code review suggestions * Change template name * Shorten docs * Add braces * consts * Docs * const * Muck about with traits * Update demo * Simplifications * Simplify * Simplification --------- Co-authored-by: Garth N. Wells <[email protected]> Co-authored-by: Matthew Scroggs <[email protected]>
- Loading branch information
1 parent
35e66b5
commit 4f57596
Showing
9 changed files
with
130 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (C) 2024 Joseph P. Dean and Garth N. Wells | ||
// This file is part of DOLFINx (https://www.fenicsproject.org) | ||
// | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
|
||
#pragma once | ||
|
||
#include <concepts> | ||
#include <cstdint> | ||
#include <dolfinx/common/types.h> | ||
#include <type_traits> | ||
|
||
namespace dolfinx::fem | ||
{ | ||
|
||
/// @brief Finite element cell kernel concept. | ||
/// | ||
/// Kernel functions that can be passed to an assembler for execution | ||
/// must satisfy this concept. | ||
template <class U, class T> | ||
concept FEkernel = std::is_invocable_v<U, T*, const T*, const T*, | ||
const scalar_value_type_t<T>*, | ||
const int*, const std::uint8_t*>; | ||
|
||
} // namespace dolfinx::fem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.