ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Classes | Functions
test_batch.cpp File Reference
#include "source_base/module_grid/batch.h"
#include "gtest/gtest.h"
#include <algorithm>
#include <random>
#include <mpi.h>
Include dependency graph for test_batch.cpp:

Classes

class  BatchTest
 

Functions

void gen_random (int ngrid, double xc, double yc, double zc, double width, std::vector< double > &grid, std::vector< int > &idx)
 
void gen_octant (int n_each, double offset_x, double offset_y, double offset_z, double width, std::vector< double > &grid, std::vector< int > &idx)
 
bool is_same_octant (int ngrid, const double *grid)
 
bool good_batch_size (const std::vector< int > &idx, const std::vector< int > &delim, int n_batch_thr)
 
 TEST_F (BatchTest, MaxMinRandom)
 
 TEST_F (BatchTest, MaxMinOctant)
 
int main (int argc, char **argv)
 

Function Documentation

◆ gen_octant()

void gen_octant ( int  n_each,
double  offset_x,
double  offset_y,
double  offset_z,
double  width,
std::vector< double > &  grid,
std::vector< int > &  idx 
)
Here is the caller graph for this function:

◆ gen_random()

void gen_random ( int  ngrid,
double  xc,
double  yc,
double  zc,
double  width,
std::vector< double > &  grid,
std::vector< int > &  idx 
)
Here is the caller graph for this function:

◆ good_batch_size()

bool good_batch_size ( const std::vector< int > &  idx,
const std::vector< int > &  delim,
int  n_batch_thr 
)
Here is the caller graph for this function:

◆ is_same_octant()

bool is_same_octant ( int  ngrid,
const double *  grid 
)
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

◆ TEST_F() [1/2]

TEST_F ( BatchTest  ,
MaxMinOctant   
)
Here is the call graph for this function:

◆ TEST_F() [2/2]

TEST_F ( BatchTest  ,
MaxMinRandom   
)
Here is the call graph for this function: