Documentation 6b54b78464
Loading...
Searching...
No Matches
CADTPointsOnlyClass Class Reference

Class for storing an ADT of only points in an arbitrary number of dimensions. More...

#include <CADTPointsOnlyClass.hpp>

Inheritance diagram for CADTPointsOnlyClass:
[legend]

Public Member Functions

 CADTPointsOnlyClass (unsigned short nDim, unsigned long nPoints, const su2double *coor, const unsigned long *pointID, const bool globalTree)
 Constructor of the class.
 
void DetermineNearestNode (const su2double *coor, su2double &dist, unsigned long &pointID, int &rankID)
 Function, which determines the nearest node in the ADT for the given coordinate.
 
 CADTPointsOnlyClass ()=delete
 Default constructor of the class, disabled.
 
- Public Member Functions inherited from CADTBaseClass
bool IsEmpty (void) const
 Function, which returns whether or not the ADT is empty.
 

Additional Inherited Members

- Protected Member Functions inherited from CADTBaseClass
 CADTBaseClass ()=default
 Constructor of the class. Nothing to be done.
 
 CADTBaseClass (const CADTBaseClass &)=delete
 
CADTBaseClass & operator= (const CADTBaseClass &)=delete
 
void BuildADT (unsigned short nDim, unsigned long nPoints, const su2double *coor)
 Function, which builds the ADT of the given coordinates.
 
- Protected Attributes inherited from CADTBaseClass
unsigned long nLeaves
 Number of leaves in the ADT.
 
unsigned short nDimADT
 Number of dimensions of the ADT.
 
bool isEmpty
 Whether or not the ADT is empty.
 
vector< CADTNodeClass > leaves
 Vector, which contains all the leaves of the ADT.
 
array< vector< unsigned long >, 1 > FrontLeaves
 
array< vector< unsigned long >, 1 > FrontLeavesNew
 

Detailed Description

Class for storing an ADT of only points in an arbitrary number of dimensions.

Author
E. van der Weide

Constructor & Destructor Documentation

◆ CADTPointsOnlyClass() [1/2]

CADTPointsOnlyClass::CADTPointsOnlyClass ( unsigned short  nDim,
unsigned long  nPoints,
const su2double *  coor,
const unsigned long *  pointID,
const bool  globalTree 
)

Constructor of the class.

Parameters
[in]nDimNumber of spatial dimensions of the problem.
[in]nPointsNumber of local points to be stored in the ADT.
[in]coorCoordinates of the local points.
[in]pointIDLocal point IDs of the local points.
[in]globalTreeWhether or not a global tree must be built. If false a local ADT is built.

◆ CADTPointsOnlyClass() [2/2]

CADTPointsOnlyClass::CADTPointsOnlyClass ( )
delete

Default constructor of the class, disabled.

Member Function Documentation

◆ DetermineNearestNode()

void CADTPointsOnlyClass::DetermineNearestNode ( const su2double *  coor,
su2double &  dist,
unsigned long &  pointID,
int &  rankID 
)
inline

Function, which determines the nearest node in the ADT for the given coordinate.

Note
This simply forwards the call to the implementation function selecting the right working variables for the current thread.
Parameters
[in]coorCoordinate for which the nearest node in the ADT must be determined.
[out]distDistance to the nearest node in the ADT.
[out]pointIDLocal point ID of the nearest node in the ADT.
[out]rankIDRank on which the nearest node in the ADT is stored.

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