ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
test_vxc_op_tools.cpp File Reference

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>
Include dependency graph for test_vxc_op_tools.cpp:

Functions

 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)

Detailed Description

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).

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

◆ TEST() [1/7]

TEST ( VxcOpTools ,
AllBandEnergyComplex  )
Here is the call graph for this function:

◆ TEST() [2/7]

TEST ( VxcOpTools ,
AllBandEnergyDouble  )
Here is the call graph for this function:

◆ TEST() [3/7]

TEST ( VxcOpTools ,
GetRealComplex  )
Here is the call graph for this function:

◆ TEST() [4/7]

TEST ( VxcOpTools ,
GetRealDouble  )
Here is the call graph for this function:

◆ TEST() [5/7]

TEST ( VxcOpTools ,
OrbitalEnergyComplex  )
Here is the call graph for this function:

◆ TEST() [6/7]

TEST ( VxcOpTools ,
OrbitalEnergyDouble  )
Here is the call graph for this function:

◆ TEST() [7/7]

TEST ( VxcOpTools ,
SetPara2dMO  )
Here is the call graph for this function: