xmsinterp  1.0
xms::NodalFuncImpl::NfThread Class Reference

Threading class to compute nodal functions in parallel. More...

Inheritance diagram for xms::NodalFuncImpl::NfThread:
xms::ThreadLoop

Public Member Functions

 NfThread (NodalFuncImpl *a_nf, BSHP< GmPtSearch > a_ptSearch)
 constructor More...
 
BSHP< ThreadLoopCreateForNewThread () override
 Creates an instance of this class for the thread manager. More...
 
- Public Member Functions inherited from xms::ThreadLoop
void SetStartNumIterCnt (int a_startIdx, int a_numIter, int *a_cntPtr)
 Sets up the thread worker. More...
 
void DoWork ()
 Executes the work of the thread.
 

Public Attributes

NodalFuncImplm_nf
 pointer to parent class
 
BSHP< GmPtSearch > m_ptSearch
 spatial index for searching points
 
VecInt m_nearestPts
 indexes of nearest points to location
 
std::vector< InterpPtInfom_matrixPts
 information about each point for nodal function calculation
 
VecDbl m_d2
 distance squared from location to each point
 
VecDbl m_w
 weight for each point
 

Private Member Functions

void Worker () override
 Calculates the nodal function in this thread.
 

Additional Inherited Members

- Protected Member Functions inherited from xms::ThreadLoop
int CurrIdx ()
 Returns the current index of the thread. More...
 

Detailed Description

Threading class to compute nodal functions in parallel.

Definition at line 55 of file NodalFunc.cpp.

Constructor & Destructor Documentation

◆ NfThread()

xms::NodalFuncImpl::NfThread::NfThread ( NodalFuncImpl a_nf,
BSHP< GmPtSearch >  a_ptSearch 
)
inline

constructor

Parameters
[in]a_nfParent class
[in]a_ptSearchSpatial index for searching points

Definition at line 61 of file NodalFunc.cpp.

Referenced by CreateForNewThread().

Member Function Documentation

◆ CreateForNewThread()

BSHP<ThreadLoop> xms::NodalFuncImpl::NfThread::CreateForNewThread ( )
inlineoverridevirtual

Creates an instance of this class for the thread manager.

Returns
ThreadLoop.

Implements xms::ThreadLoop.

Definition at line 69 of file NodalFunc.cpp.

References m_nf, m_ptSearch, and NfThread().


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