ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
TestModuleHamiltEkinetic Class Reference
Inheritance diagram for TestModuleHamiltEkinetic:
Collaboration diagram for TestModuleHamiltEkinetic:

Protected Types

using ekinetic_cpu_op = hamilt::ekinetic_pw_op<double, base_device::DEVICE_CPU>
using ekinetic_gpu_op = hamilt::ekinetic_pw_op<double, base_device::DEVICE_GPU>
using set_memory_complex_double_op
using delete_memory_double_op = base_device::memory::delete_memory_op<double, base_device::DEVICE_GPU>
using delete_memory_complex_double_op
using resize_memory_double_op = base_device::memory::resize_memory_op<double, base_device::DEVICE_GPU>
using resize_memory_complex_double_op
using syncmem_d_h2d_op
using syncmem_cd_h2d_op
using syncmem_cd_d2h_op

Protected Member Functions

void SetUp () override
void TearDown () override

Protected Attributes

const int dim = 27
const int band = 8
const double tpiba2 = 0.37945422533
std::vector< double > gk2 = {3, 0, 3, 8, 3, 4, 4, 3, 8, 8, 3, 4, 4, 3, 8, 8, 8, 8, 8, 4, 3, 8, 8, 8, 8, 3, 4}
std::vector< std::complex< double > > psi
std::vector< std::complex< double > > expected_hpsi
const base_device::DEVICE_CPU * cpu_ctx = {}
const base_device::DEVICE_GPU * gpu_ctx = {}

Member Typedef Documentation

◆ delete_memory_complex_double_op

◆ delete_memory_double_op

◆ ekinetic_cpu_op

using TestModuleHamiltEkinetic::ekinetic_cpu_op = hamilt::ekinetic_pw_op<double, base_device::DEVICE_CPU>
protected

◆ ekinetic_gpu_op

using TestModuleHamiltEkinetic::ekinetic_gpu_op = hamilt::ekinetic_pw_op<double, base_device::DEVICE_GPU>
protected

◆ resize_memory_complex_double_op

◆ resize_memory_double_op

◆ set_memory_complex_double_op

◆ syncmem_cd_d2h_op

Initial value:
std::complex<double>, base_device::DEVICE_CPU, base_device::DEVICE_GPU>

◆ syncmem_cd_h2d_op

Initial value:
std::complex<double>, base_device::DEVICE_GPU, base_device::DEVICE_CPU>

◆ syncmem_d_h2d_op

Member Function Documentation

◆ SetUp()

void TestModuleHamiltEkinetic::SetUp ( )
inlineoverrideprotected

◆ TearDown()

void TestModuleHamiltEkinetic::TearDown ( )
inlineoverrideprotected

Member Data Documentation

◆ band

const int TestModuleHamiltEkinetic::band = 8
protected

◆ cpu_ctx

const base_device::DEVICE_CPU* TestModuleHamiltEkinetic::cpu_ctx = {}
protected

◆ dim

const int TestModuleHamiltEkinetic::dim = 27
protected

◆ expected_hpsi

std::vector<std::complex<double> > TestModuleHamiltEkinetic::expected_hpsi
protected

◆ gk2

std::vector<double> TestModuleHamiltEkinetic::gk2 = {3, 0, 3, 8, 3, 4, 4, 3, 8, 8, 3, 4, 4, 3, 8, 8, 8, 8, 8, 4, 3, 8, 8, 8, 8, 3, 4}
protected

◆ gpu_ctx

const base_device::DEVICE_GPU* TestModuleHamiltEkinetic::gpu_ctx = {}
protected

◆ psi

std::vector<std::complex<double> > TestModuleHamiltEkinetic::psi
protected

◆ tpiba2

const double TestModuleHamiltEkinetic::tpiba2 = 0.37945422533
protected

The documentation for this class was generated from the following file: