DDC 0.1.0
Loading...
Searching...
No Matches
ddc::NonUniformPointSampling< CDim > Class Template Reference

NonUniformPointSampling models a non-uniform discretization of the CDim segment \([a, b]\). More...

#include <non_uniform_point_sampling.hpp>

Inheritance diagram for ddc::NonUniformPointSampling< CDim >:
Inheritance graph
Collaboration diagram for ddc::NonUniformPointSampling< CDim >:
Collaboration graph

Classes

class  Impl
 

Public Types

using continuous_dimension_type = CDim
 
using continuous_element_type = Coordinate< CDim >
 
using discrete_dimension_type = NonUniformPointSampling
 

Static Public Member Functions

template<class DDim , class InputRange >
static std::tuple< typename DDim::template Impl< DDim, Kokkos::HostSpace >, DiscreteDomain< DDim > > init (InputRange const non_uniform_points)
 Construct an Impl<Kokkos::HostSpace> and associated discrete_domain_type from an iterator containing the points coordinates along the DDim dimension.
 
template<class DDim , class InputRange >
static std::tuple< typename DDim::template Impl< DDim, Kokkos::HostSpace >, DiscreteDomain< DDim >, DiscreteDomain< DDim >, DiscreteDomain< DDim >, DiscreteDomain< DDim > > init_ghosted (InputRange const &domain_r, InputRange const &pre_ghost_r, InputRange const &post_ghost_r)
 Construct 4 non-uniform DiscreteDomain and an Impl<Kokkos::HostSpace> from 3 iterators containing the points coordinates along the DDim dimension.
 

Detailed Description

template<class CDim>
class ddc::NonUniformPointSampling< CDim >

NonUniformPointSampling models a non-uniform discretization of the CDim segment \([a, b]\).

Definition at line 36 of file non_uniform_point_sampling.hpp.

Member Typedef Documentation

◆ continuous_dimension_type

template<class CDim >
using ddc::NonUniformPointSampling< CDim >::continuous_dimension_type = CDim

Definition at line 39 of file non_uniform_point_sampling.hpp.

◆ continuous_element_type

template<class CDim >
using ddc::NonUniformPointSampling< CDim >::continuous_element_type = Coordinate<CDim>

Definition at line 41 of file non_uniform_point_sampling.hpp.

◆ discrete_dimension_type

template<class CDim >
using ddc::NonUniformPointSampling< CDim >::discrete_dimension_type = NonUniformPointSampling

Definition at line 44 of file non_uniform_point_sampling.hpp.

Member Function Documentation

◆ init()

template<class CDim >
template<class DDim , class InputRange >
static std::tuple< typename DDim::template Impl< DDim, Kokkos::HostSpace >, DiscreteDomain< DDim > > ddc::NonUniformPointSampling< CDim >::init ( InputRange const  non_uniform_points)
inlinestatic

Construct an Impl<Kokkos::HostSpace> and associated discrete_domain_type from an iterator containing the points coordinates along the DDim dimension.

Parameters
non_uniform_pointsa vector containing the coordinates of the points of the domain.

Definition at line 144 of file non_uniform_point_sampling.hpp.

◆ init_ghosted()

template<class CDim >
template<class DDim , class InputRange >
static std::tuple< typename DDim::template Impl< DDim, Kokkos::HostSpace >, DiscreteDomain< DDim >, DiscreteDomain< DDim >, DiscreteDomain< DDim >, DiscreteDomain< DDim > > ddc::NonUniformPointSampling< CDim >::init_ghosted ( InputRange const domain_r,
InputRange const pre_ghost_r,
InputRange const post_ghost_r 
)
inlinestatic

Construct 4 non-uniform DiscreteDomain and an Impl<Kokkos::HostSpace> from 3 iterators containing the points coordinates along the DDim dimension.

Parameters
domain_ran iterator containing the coordinates of the points of the main domain along the DDim position
pre_ghost_ran iterator containing the positions of the ghost points before the main domain the DDim position
post_ghost_ran iterator containing the positions of the ghost points after the main domain the DDim position

Definition at line 169 of file non_uniform_point_sampling.hpp.


The documentation for this class was generated from the following file: