DFT-FE 1.1.0-pre
Density Functional Theory With Finite-Elements
|
This class takes in a bunch of points and finds the cell (provided as input) it lies in. In case the points dont lie in any of the cells, it sends the points to other processors. Similarly it receives points from other processors and then checks if any of them lies within its cell. It provides the real coordinates of points in each cell. More...
#include <MapPointsToCells.h>
Public Member Functions | |
MapPointsToCells (const dftfe::uInt verbosity, const MPI_Comm &mpiComm) | |
void | init (std::vector< std::shared_ptr< const Cell< dim > > > srcCells, const std::vector< std::vector< double > > &targetPts, std::vector< std::vector< double > > &mapCellsToRealCoordinates, std::vector< std::vector< dftfe::uInt > > &mapCellLocalToProcLocal, std::pair< dftfe::uInt, dftfe::uInt > &locallyOwnedRange, std::vector< dftfe::uInt > &ghostGlobalIds, const double paramCoordsTol) |
The init(). | |
Private Attributes | |
const MPI_Comm | d_mpiComm |
int | d_numMPIRank |
int | d_thisRank |
dftfe::uInt | d_verbosity |
This class takes in a bunch of points and finds the cell (provided as input) it lies in. In case the points dont lie in any of the cells, it sends the points to other processors. Similarly it receives points from other processors and then checks if any of them lies within its cell. It provides the real coordinates of points in each cell.
dftfe::utils::MapPointsToCells< dim, M >::MapPointsToCells | ( | const dftfe::uInt | verbosity, |
const MPI_Comm & | mpiComm ) |
void dftfe::utils::MapPointsToCells< dim, M >::init | ( | std::vector< std::shared_ptr< const Cell< dim > > > | srcCells, |
const std::vector< std::vector< double > > & | targetPts, | ||
std::vector< std::vector< double > > & | mapCellsToRealCoordinates, | ||
std::vector< std::vector< dftfe::uInt > > & | mapCellLocalToProcLocal, | ||
std::pair< dftfe::uInt, dftfe::uInt > & | locallyOwnedRange, | ||
std::vector< dftfe::uInt > & | ghostGlobalIds, | ||
const double | paramCoordsTol ) |
The init().
[in] | srcCells | The cells assigned to this processor |
[in] | targetPts | The points assigned to this processor |
[out] | mapCellsToRealCoordinates | The Real coordinates of the points found in each cell. |
[in] | locallyOwnedRange | The locally owned range for the target points |
[out] | ghostGlobalIds | The global Ids of the points assigned to other processors but found within the cells assigned to this processor. |
[in] | paramCoordsTol | Tol used to determine if the point is inside a cell |
|
private |
|
private |
|
private |
|
private |