13 #if !defined(KRATOS_NEIGHBOUR_LIST_FUNCTOR_H_INCLUDED )
14 #define KRATOS_NEIGHBOUR_LIST_FUNCTOR_H_INCLUDED
56 template<
class TContainerType,
class TVariableType >
72 const TContainerType& rContainer,
73 const TVariableType& rVar
76 : mrContainer(rContainer), mrVariable(rVar)
88 for(
auto& item : mrContainer)
90 auto& neighbours = item.GetValue(mrVariable);
91 for(
auto& gp : neighbours.GetContainer())
119 virtual std::string
Info()
const
121 std::stringstream buffer;
122 buffer <<
"ComputeNeighbourListFunctor" ;
127 virtual void PrintInfo(std::ostream& rOStream)
const {rOStream <<
"ComputeNeighbourListFunctor";}
184 const TContainerType& mrContainer;
185 const TVariableType& mrVariable;
228 template<
class TContainerType,
class TVariableType>
234 template<
class TContainerType,
class TVariableType>
239 rOStream << std::endl;
Short class definition.
Definition: compute_neighbour_list_functor.h:58
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: compute_neighbour_list_functor.h:127
virtual ~ComputeNeighbourListFunctor()
Destructor.
Definition: compute_neighbour_list_functor.h:80
ComputeNeighbourListFunctor(const TContainerType &rContainer, const TVariableType &rVar)
Default constructor.
Definition: compute_neighbour_list_functor.h:71
KRATOS_CLASS_POINTER_DEFINITION(ComputeNeighbourListFunctor)
Pointer definition of ComputeNeighbourListFunctor.
virtual std::string Info() const
Turn back information as a string.
Definition: compute_neighbour_list_functor.h:119
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: compute_neighbour_list_functor.h:130
GlobalPointersVector< typename TVariableType::Type::data_type > operator()(const DataCommunicator &rComm) const
Definition: compute_neighbour_list_functor.h:85
Serial (do-nothing) version of a wrapper class for MPI communication.
Definition: data_communicator.h:318
This class is a vector which stores global pointers.
Definition: global_pointers_vector.h:61
void push_back(TPointerType x)
Definition: global_pointers_vector.h:322
void Unique()
Remove duplicate elements from the container.
Definition: global_pointers_vector.h:131
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432