Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ScalFMM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
ScalFMM
Commits
3936d29e
Verified
Commit
3936d29e
authored
1 month ago
by
GICQUEL Antoine
Browse files
Options
Downloads
Patches
Plain Diff
Add 'smooth_tag' for smooth kernels + trait to detect at compile-time if
a kernel is smooth.
parent
79b5ae11
No related branches found
No related tags found
No related merge requests found
Pipeline
#1128646
skipped
Stage: docker
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/scalfmm/matrix_kernels/gaussian.hpp
+2
-0
2 additions, 0 deletions
include/scalfmm/matrix_kernels/gaussian.hpp
include/scalfmm/meta/traits.hpp
+29
-1
29 additions, 1 deletion
include/scalfmm/meta/traits.hpp
with
31 additions
and
1 deletion
include/scalfmm/matrix_kernels/gaussian.hpp
+
2
−
0
View file @
3936d29e
...
...
@@ -34,6 +34,8 @@ namespace scalfmm::matrix_kernels
static
constexpr
std
::
size_t
km
{
1
};
// The number of inputs of the kernel.
static
constexpr
std
::
size_t
kn
{
1
};
// The number of outputs of the kernel.
static
constexpr
bool
is_smooth
{
true
};
// Specify that the kernel is smooth.
// Mandatory type
template
<
typename
ValueType
>
using
matrix_type
=
std
::
array
<
ValueType
,
kn
*
km
>
;
// Matrix type that is used in the kernel.
...
...
This diff is collapsed.
Click to expand it.
include/scalfmm/meta/traits.hpp
+
29
−
1
View file @
3936d29e
...
...
@@ -6,7 +6,7 @@
// --------------------------------
// See LICENCE file at project root
// File : scalfmm/meta/traits.hpp
// -------------------------------
-
// -------------------------------
#ifndef SCALFMM_META_TRAITS_HPP
#define SCALFMM_META_TRAITS_HPP
...
...
@@ -920,6 +920,34 @@ namespace scalfmm::meta
template
<
typename
T
>
inline
static
constexpr
bool
is_particle_v
=
is_particle
<
T
>::
value
;
/**
* @brief
*
* @tparam T
*/
template
<
typename
MatrixKernelType
,
typename
=
void
>
struct
is_smooth
:
std
::
false_type
{
};
/**
* @brief
*
* @tparam T
*/
template
<
typename
MatrixKernelType
>
struct
is_smooth
<
MatrixKernelType
,
std
::
void_t
<
decltype
(
MatrixKernelType
::
is_smooth
)
>>
:
std
::
true_type
{
};
/**
* @brief
*
* @tparam T
*/
template
<
typename
MatrixKernelType
>
inline
static
constexpr
bool
is_smooth_v
=
is_smooth
<
MatrixKernelType
>::
value
;
/**
* @brief
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment