Unit tests for vxc_op_tools.cpp helper functions.
More...
#include <gtest/gtest.h>
#include "source_io/module_hs/vxc_op_tools.h"
#include "source_base/parallel_blkcyc.h"
#include "source_base/parallel_comm.h"
#include "source_base/matrix.h"
#include <complex>
#include <vector>
#include <mpi.h>
|
| | TEST (VxcOpTools, GetRealDouble) |
| | TEST (VxcOpTools, GetRealComplex) |
| | TEST (VxcOpTools, SetPara2dMO) |
| | TEST (VxcOpTools, OrbitalEnergyDouble) |
| | TEST (VxcOpTools, OrbitalEnergyComplex) |
| | TEST (VxcOpTools, AllBandEnergyDouble) |
| | TEST (VxcOpTools, AllBandEnergyComplex) |
| int | main (int argc, char **argv) |
Unit tests for vxc_op_tools.cpp helper functions.
Tests the functions that do not require a full Parallel_Orbitals / ScaLAPACK context:
- get_real (double and complex overloads)
- set_para2d_MO (non-MPI set_serial path)
- orbital_energy (serial Parallel_Blkcyclic, double and complex)
- all_band_energy (serial Parallel_Blkcyclic, double and complex)
cVc is not tested here because it requires pv.desc / pv.desc_wfc (full Parallel_Orbitals with BLACS context). write_orb_energy is not tested here because it requires K_Vectors (vtable pulls in klist.cpp -> symmetry.cpp dependency chain).
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
◆ TEST() [1/7]
| TEST |
( |
VxcOpTools | , |
|
|
AllBandEnergyComplex | ) |
◆ TEST() [2/7]
| TEST |
( |
VxcOpTools | , |
|
|
AllBandEnergyDouble | ) |
◆ TEST() [3/7]
| TEST |
( |
VxcOpTools | , |
|
|
GetRealComplex | ) |
◆ TEST() [4/7]
| TEST |
( |
VxcOpTools | , |
|
|
GetRealDouble | ) |
◆ TEST() [5/7]
| TEST |
( |
VxcOpTools | , |
|
|
OrbitalEnergyComplex | ) |
◆ TEST() [6/7]
| TEST |
( |
VxcOpTools | , |
|
|
OrbitalEnergyDouble | ) |
◆ TEST() [7/7]
| TEST |
( |
VxcOpTools | , |
|
|
SetPara2dMO | ) |