MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type > Class Template Reference

Functor for marking nodes as Dirichlet. More...

#include <MueLu_BoundaryDetection.hpp>

Public Member Functions

 PointDirichletFunctor (local_matrix_type &A_, boundary_nodes_view boundaryNodes_, magnitudeType dirichletThreshold_, local_ordinal_type dirichletNonzeroThreshold_)
 
KOKKOS_FORCEINLINE_FUNCTION void operator() (const local_ordinal_type rlid) const
 

Private Types

using scalar_type = typename local_matrix_type::value_type
 
using local_ordinal_type = typename local_matrix_type::ordinal_type
 
using memory_space = typename local_matrix_type::memory_space
 
using ATS = Kokkos::ArithTraits< scalar_type >
 
using magnitudeType = typename ATS::magnitudeType
 
using boundary_nodes_view = Kokkos::View< bool *, memory_space >
 

Private Attributes

local_matrix_type A
 
boundary_nodes_view boundaryNodes
 
magnitudeType dirichletThreshold
 
local_ordinal_type dirichletNonzeroThreshold
 

Detailed Description

template<class local_matrix_type>
class MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >

Functor for marking nodes as Dirichlet.

A row is marked as Dirichlet boundary if fewer than dirichletNonzeroThreshold entries are larger in absolute value than dirichletThreshold. It is assumed that boundaryNodes was initialized to false.

Definition at line 34 of file MueLu_BoundaryDetection.hpp.

Member Typedef Documentation

template<class local_matrix_type >
using MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >::scalar_type = typename local_matrix_type::value_type
private

Definition at line 36 of file MueLu_BoundaryDetection.hpp.

template<class local_matrix_type >
using MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >::local_ordinal_type = typename local_matrix_type::ordinal_type
private

Definition at line 37 of file MueLu_BoundaryDetection.hpp.

template<class local_matrix_type >
using MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >::memory_space = typename local_matrix_type::memory_space
private

Definition at line 38 of file MueLu_BoundaryDetection.hpp.

template<class local_matrix_type >
using MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >::ATS = Kokkos::ArithTraits<scalar_type>
private

Definition at line 40 of file MueLu_BoundaryDetection.hpp.

template<class local_matrix_type >
using MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >::magnitudeType = typename ATS::magnitudeType
private

Definition at line 41 of file MueLu_BoundaryDetection.hpp.

template<class local_matrix_type >
using MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >::boundary_nodes_view = Kokkos::View<bool*, memory_space>
private

Definition at line 42 of file MueLu_BoundaryDetection.hpp.

Constructor & Destructor Documentation

template<class local_matrix_type >
MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >::PointDirichletFunctor ( local_matrix_type &  A_,
boundary_nodes_view  boundaryNodes_,
magnitudeType  dirichletThreshold_,
local_ordinal_type  dirichletNonzeroThreshold_ 
)
inline

Definition at line 50 of file MueLu_BoundaryDetection.hpp.

Member Function Documentation

template<class local_matrix_type >
KOKKOS_FORCEINLINE_FUNCTION void MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >::operator() ( const local_ordinal_type  rlid) const
inline

Definition at line 57 of file MueLu_BoundaryDetection.hpp.

Member Data Documentation

template<class local_matrix_type >
local_matrix_type MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >::A
private

Definition at line 44 of file MueLu_BoundaryDetection.hpp.

template<class local_matrix_type >
boundary_nodes_view MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >::boundaryNodes
private

Definition at line 45 of file MueLu_BoundaryDetection.hpp.

template<class local_matrix_type >
magnitudeType MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >::dirichletThreshold
private

Definition at line 46 of file MueLu_BoundaryDetection.hpp.

template<class local_matrix_type >
local_ordinal_type MueLu::BoundaryDetection::PointDirichletFunctor< local_matrix_type >::dirichletNonzeroThreshold
private

Definition at line 47 of file MueLu_BoundaryDetection.hpp.


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