|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include "source_base/module_grid/batch.h"#include "gtest/gtest.h"#include <algorithm>#include <random>#include <mpi.h>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) |
| 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 | ||
| ) |
| void gen_random | ( | int | ngrid, |
| double | xc, | ||
| double | yc, | ||
| double | zc, | ||
| double | width, | ||
| std::vector< double > & | grid, | ||
| std::vector< int > & | idx | ||
| ) |
| bool good_batch_size | ( | const std::vector< int > & | idx, |
| const std::vector< int > & | delim, | ||
| int | n_batch_thr | ||
| ) |
| bool is_same_octant | ( | int | ngrid, |
| const double * | grid | ||
| ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
| TEST_F | ( | BatchTest | , |
| MaxMinOctant | |||
| ) |
| TEST_F | ( | BatchTest | , |
| MaxMinRandom | |||
| ) |