xmsinterp
1.0
|
Threading class to compute nodal functions in parallel. More...
Public Member Functions | |
NfThread (NodalFuncImpl *a_nf, BSHP< GmPtSearch > a_ptSearch) | |
constructor More... | |
BSHP< ThreadLoop > | CreateForNewThread () 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 | |
NodalFuncImpl * | m_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< InterpPtInfo > | m_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... | |
Threading class to compute nodal functions in parallel.
Definition at line 55 of file NodalFunc.cpp.
|
inline |
constructor
[in] | a_nf | Parent class |
[in] | a_ptSearch | Spatial index for searching points |
Definition at line 61 of file NodalFunc.cpp.
Referenced by CreateForNewThread().
|
inlineoverridevirtual |
Creates an instance of this class for the thread manager.
Implements xms::ThreadLoop.
Definition at line 69 of file NodalFunc.cpp.
References m_nf, m_ptSearch, and NfThread().