ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
RpaLriDetail Namespace Reference

Classes

struct  LibRpaSymmetryOperation
struct  LibRpaSpinSymmetryOperation
struct  LibRpaStruUnitScales
struct  BandSample
struct  BandOutputData
struct  BzSamplePoint
struct  BzSampleData
struct  LriCoefV1Block
struct  KSEigenvectorMpiLayout
struct  KSEigenvectorPackCursor

Functions

ModuleBase::Vector3< double > librpa_cartesian_kvec (const ModuleBase::Vector3< double > &kvec_c, const double lat0_bohr)
int checked_near_int (const double value, const std::string &context)
LibRpaSymmetryOperation make_librpa_symmetry_operation (const ModuleBase::Matrix3 &rotation, const ModuleBase::Vector3< double > &translation)
std::vector< LibRpaSpinSymmetryOperation > make_librpa_spin_symmetry_operations (const ModuleBase::Matrix3 &latvec, const std::vector< ModuleBase::Matrix3 > &unitary_rotations, const std::vector< ModuleBase::Matrix3 > &antiunitary_rotations)
void write_librpa_symmetry_rows (std::ostream &output, const std::vector< LibRpaSymmetryOperation > &unitary, const std::vector< LibRpaSymmetryOperation > &antiunitary)
void write_librpa_spin_symmetry (std::ostream &output, const int grey_group, const int spin_source, const std::vector< LibRpaSpinSymmetryOperation > &operations)
LibRpaStruUnitScales librpa_stru_unit_scales (const double lat0_bohr)
void write_band_output (std::ostream &output, const BandOutputData &data)
std::vector< std::vector< int > > collect_abfs_l_nchi (const std::vector< std::vector< std::vector< Numerical_Orbital_Lm > > > &abfs)
std::vector< std::vector< int > > collect_wfc_l_nchi (const UnitCell &ucell)
int basis_size_from_shell_counts (const std::vector< int > &shell_counts)
void write_librpa_split_basis_file (const UnitCell &ucell, const std::vector< int > &type_sizes, const std::vector< std::vector< int > > &type_shell_counts, const std::string &filename)
void write_bz_sample (const std::string &filename, const BzSampleData &data)
void write_lri_coef_v1 (const std::string &filename, const std::int32_t natom, std::vector< LriCoefV1Block > &blocks)
void trim_malloc_cache ()
bool debug_dump_exx_ao_enabled ()
std::size_t coulomb_atom_pair_index (const std::size_t I, const std::size_t J, const std::size_t natoms)
void checked_write (std::ofstream &ofs, const void *data, const std::size_t bytes, const std::string &filename)
template<typename Value>
void write_scalar (std::ofstream &ofs, const Value &value, const std::string &filename)
unsigned long long checked_mul_u64 (const unsigned long long lhs, const unsigned long long rhs, const std::string &context)
unsigned long long checked_add_u64 (const unsigned long long lhs, const unsigned long long rhs, const std::string &context)
std::int64_t checked_i64_from_u64 (const unsigned long long value, const std::string &context)
std::int32_t checked_i32_from_size (const std::size_t value, const std::string &context)
std::int32_t checked_i32_from_int (const int value, const std::string &context)
int sum_int_vector (const std::vector< int > &values)
double real_as_double (const std::complex< double > &value)
double real_as_double (double value)
bool has_valid_matrix_shape (const RI::Tensor< double > &tensor)
void abort_output (MPI_Comm comm, const std::string &message)
template void write_scalar< std::int32_t > (std::ofstream &, const std::int32_t &, const std::string &)
template void write_scalar< std::int64_t > (std::ofstream &, const std::int64_t &, const std::string &)
template void write_scalar< double > (std::ofstream &, const double &, const std::string &)
void write_stru_sym (std::ostream &output, const UnitCell &cell, const K_Vectors &kv, const int nspin)
std::string mpi_error_string (const int error_code)
void collective_mpi_check (const MPI_Comm mpi_comm, const int local_error, const std::string &context)
void collective_require (const MPI_Comm mpi_comm, const bool local_condition, const std::string &context)
MPI_Aint checked_mpi_aint_from_u64 (const unsigned long long value, const std::string &context)
MPI_Offset checked_mpi_offset_from_u64 (const unsigned long long value, const std::string &context)
KSEigenvectorMpiLayout make_ks_eigenvector_mpi_layout (const MPI_Comm mpi_comm, const Parallel_Orbitals &parav, const int nbands, const int nbasis_wfc, const bool is_soc, const int spinor_component)
int free_ks_eigenvector_mpi_layout (KSEigenvectorMpiLayout &layout)
template<typename T>
void write_ks_eigenvector_v1_mpi (const MPI_Comm mpi_comm, const Parallel_Orbitals &parav, const psi::Psi< T > &psi, const int nks_tot, const int nspins, const int nspin_abacus, const int nbands, const int nbasis_wfc, const std::string &final_name)
template<typename Value>
void append_binary_scalar (std::vector< char > &bytes, const Value &value)
KSEigenvectorV1Metadata make_ks_eigenvector_v1_metadata (const int nks_tot, const int nspins, const int ncomponents, const int nbands, const int nbasis_wfc, const int spatial_basis)
template<typename T>
int pack_ks_eigenvector_chunk (const Parallel_Orbitals &parav, const psi::Psi< T > &psi, const int psi_k, const bool is_soc, const int spinor_component, KSEigenvectorPackCursor &cursor, std::vector< std::complex< double > > &buffer, const int requested_count)
template void write_ks_eigenvector_v1_mpi< double > (MPI_Comm, const Parallel_Orbitals &, const psi::Psi< double > &, int, int, int, int, int, const std::string &)
template void write_ks_eigenvector_v1_mpi< std::complex< double > > (MPI_Comm, const Parallel_Orbitals &, const psi::Psi< std::complex< double > > &, int, int, int, int, int, const std::string &)

Variables

constexpr int LIBRPA_COULOMB_V1_MARKER = -20129433
constexpr int LIBRPA_LRICOEF_V1_MARKER = -10267453
constexpr int LIBRPA_SHRINK_SINVS_V1_MARKER = -30241621
constexpr int LIBRPA_KS_EIGENVECTOR_V1_MARKER = -12345679
constexpr int LIBRPA_KS_EIGENVECTOR_V1_KIND_COMPLEX_DOUBLE = 28
constexpr int LIBRPA_COULOMB_V1_COMPLEX_FLAG = 1

Function Documentation

◆ abort_output()

void RpaLriDetail::abort_output ( MPI_Comm comm,
const std::string & message )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ append_binary_scalar()

template<typename Value>
void RpaLriDetail::append_binary_scalar ( std::vector< char > & bytes,
const Value & value )
Here is the caller graph for this function:

◆ basis_size_from_shell_counts()

int RpaLriDetail::basis_size_from_shell_counts ( const std::vector< int > & shell_counts)
Here is the caller graph for this function:

◆ checked_add_u64()

unsigned long long RpaLriDetail::checked_add_u64 ( const unsigned long long lhs,
const unsigned long long rhs,
const std::string & context )
Here is the caller graph for this function:

◆ checked_i32_from_int()

std::int32_t RpaLriDetail::checked_i32_from_int ( const int value,
const std::string & context )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ checked_i32_from_size()

std::int32_t RpaLriDetail::checked_i32_from_size ( const std::size_t value,
const std::string & context )
Here is the caller graph for this function:

◆ checked_i64_from_u64()

std::int64_t RpaLriDetail::checked_i64_from_u64 ( const unsigned long long value,
const std::string & context )
Here is the caller graph for this function:

◆ checked_mpi_aint_from_u64()

MPI_Aint RpaLriDetail::checked_mpi_aint_from_u64 ( const unsigned long long value,
const std::string & context )
Here is the caller graph for this function:

◆ checked_mpi_offset_from_u64()

MPI_Offset RpaLriDetail::checked_mpi_offset_from_u64 ( const unsigned long long value,
const std::string & context )
Here is the caller graph for this function:

◆ checked_mul_u64()

unsigned long long RpaLriDetail::checked_mul_u64 ( const unsigned long long lhs,
const unsigned long long rhs,
const std::string & context )
Here is the caller graph for this function:

◆ checked_near_int()

int RpaLriDetail::checked_near_int ( const double value,
const std::string & context )
Here is the caller graph for this function:

◆ checked_write()

void RpaLriDetail::checked_write ( std::ofstream & ofs,
const void * data,
const std::size_t bytes,
const std::string & filename )
Here is the caller graph for this function:

◆ collect_abfs_l_nchi()

std::vector< std::vector< int > > RpaLriDetail::collect_abfs_l_nchi ( const std::vector< std::vector< std::vector< Numerical_Orbital_Lm > > > & abfs)
Here is the caller graph for this function:

◆ collect_wfc_l_nchi()

std::vector< std::vector< int > > RpaLriDetail::collect_wfc_l_nchi ( const UnitCell & ucell)
Here is the caller graph for this function:

◆ collective_mpi_check()

void RpaLriDetail::collective_mpi_check ( const MPI_Comm mpi_comm,
const int local_error,
const std::string & context )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ collective_require()

void RpaLriDetail::collective_require ( const MPI_Comm mpi_comm,
const bool local_condition,
const std::string & context )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ coulomb_atom_pair_index()

std::size_t RpaLriDetail::coulomb_atom_pair_index ( const std::size_t I,
const std::size_t J,
const std::size_t natoms )
Here is the caller graph for this function:

◆ debug_dump_exx_ao_enabled()

bool RpaLriDetail::debug_dump_exx_ao_enabled ( )

◆ free_ks_eigenvector_mpi_layout()

int RpaLriDetail::free_ks_eigenvector_mpi_layout ( KSEigenvectorMpiLayout & layout)
Here is the caller graph for this function:

◆ has_valid_matrix_shape()

bool RpaLriDetail::has_valid_matrix_shape ( const RI::Tensor< double > & tensor)
Here is the caller graph for this function:

◆ librpa_cartesian_kvec()

ModuleBase::Vector3< double > RpaLriDetail::librpa_cartesian_kvec ( const ModuleBase::Vector3< double > & kvec_c,
const double lat0_bohr )
Here is the caller graph for this function:

◆ librpa_stru_unit_scales()

LibRpaStruUnitScales RpaLriDetail::librpa_stru_unit_scales ( const double lat0_bohr)
Here is the caller graph for this function:

◆ make_ks_eigenvector_mpi_layout()

KSEigenvectorMpiLayout RpaLriDetail::make_ks_eigenvector_mpi_layout ( const MPI_Comm mpi_comm,
const Parallel_Orbitals & parav,
const int nbands,
const int nbasis_wfc,
const bool is_soc,
const int spinor_component )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_ks_eigenvector_v1_metadata()

KSEigenvectorV1Metadata RpaLriDetail::make_ks_eigenvector_v1_metadata ( const int nks_tot,
const int nspins,
const int ncomponents,
const int nbands,
const int nbasis_wfc,
const int spatial_basis )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_librpa_spin_symmetry_operations()

std::vector< LibRpaSpinSymmetryOperation > RpaLriDetail::make_librpa_spin_symmetry_operations ( const ModuleBase::Matrix3 & latvec,
const std::vector< ModuleBase::Matrix3 > & unitary_rotations,
const std::vector< ModuleBase::Matrix3 > & antiunitary_rotations )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_librpa_symmetry_operation()

LibRpaSymmetryOperation RpaLriDetail::make_librpa_symmetry_operation ( const ModuleBase::Matrix3 & rotation,
const ModuleBase::Vector3< double > & translation )
Here is the caller graph for this function:

◆ mpi_error_string()

std::string RpaLriDetail::mpi_error_string ( const int error_code)
Here is the caller graph for this function:

◆ pack_ks_eigenvector_chunk()

template<typename T>
int RpaLriDetail::pack_ks_eigenvector_chunk ( const Parallel_Orbitals & parav,
const psi::Psi< T > & psi,
const int psi_k,
const bool is_soc,
const int spinor_component,
KSEigenvectorPackCursor & cursor,
std::vector< std::complex< double > > & buffer,
const int requested_count )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ real_as_double() [1/2]

double RpaLriDetail::real_as_double ( const std::complex< double > & value)
Here is the caller graph for this function:

◆ real_as_double() [2/2]

double RpaLriDetail::real_as_double ( double value)

◆ sum_int_vector()

int RpaLriDetail::sum_int_vector ( const std::vector< int > & values)
Here is the caller graph for this function:

◆ trim_malloc_cache()

void RpaLriDetail::trim_malloc_cache ( )
Here is the caller graph for this function:

◆ write_band_output()

void RpaLriDetail::write_band_output ( std::ostream & output,
const BandOutputData & data )
Here is the caller graph for this function:

◆ write_bz_sample()

void RpaLriDetail::write_bz_sample ( const std::string & filename,
const BzSampleData & data )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_ks_eigenvector_v1_mpi()

template<typename T>
void RpaLriDetail::write_ks_eigenvector_v1_mpi ( const MPI_Comm mpi_comm,
const Parallel_Orbitals & parav,
const psi::Psi< T > & psi,
const int nks_tot,
const int nspins,
const int nspin_abacus,
const int nbands,
const int nbasis_wfc,
const std::string & final_name )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_ks_eigenvector_v1_mpi< double >()

template void RpaLriDetail::write_ks_eigenvector_v1_mpi< double > ( MPI_Comm ,
const Parallel_Orbitals & ,
const psi::Psi< double > & ,
int ,
int ,
int ,
int ,
int ,
const std::string &  )

◆ write_ks_eigenvector_v1_mpi< std::complex< double > >()

template void RpaLriDetail::write_ks_eigenvector_v1_mpi< std::complex< double > > ( MPI_Comm ,
const Parallel_Orbitals & ,
const psi::Psi< std::complex< double > > & ,
int ,
int ,
int ,
int ,
int ,
const std::string &  )
Here is the call graph for this function:

◆ write_librpa_spin_symmetry()

void RpaLriDetail::write_librpa_spin_symmetry ( std::ostream & output,
const int grey_group,
const int spin_source,
const std::vector< LibRpaSpinSymmetryOperation > & operations )
Here is the caller graph for this function:

◆ write_librpa_split_basis_file()

void RpaLriDetail::write_librpa_split_basis_file ( const UnitCell & ucell,
const std::vector< int > & type_sizes,
const std::vector< std::vector< int > > & type_shell_counts,
const std::string & filename )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_librpa_symmetry_rows()

void RpaLriDetail::write_librpa_symmetry_rows ( std::ostream & output,
const std::vector< LibRpaSymmetryOperation > & unitary,
const std::vector< LibRpaSymmetryOperation > & antiunitary )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_lri_coef_v1()

void RpaLriDetail::write_lri_coef_v1 ( const std::string & filename,
const std::int32_t natom,
std::vector< LriCoefV1Block > & blocks )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_scalar()

template<typename Value>
void RpaLriDetail::write_scalar ( std::ofstream & ofs,
const Value & value,
const std::string & filename )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_scalar< double >()

template void RpaLriDetail::write_scalar< double > ( std::ofstream & ,
const double & ,
const std::string &  )

◆ write_scalar< std::int32_t >()

template void RpaLriDetail::write_scalar< std::int32_t > ( std::ofstream & ,
const std::int32_t & ,
const std::string &  )

◆ write_scalar< std::int64_t >()

template void RpaLriDetail::write_scalar< std::int64_t > ( std::ofstream & ,
const std::int64_t & ,
const std::string &  )

◆ write_stru_sym()

void RpaLriDetail::write_stru_sym ( std::ostream & output,
const UnitCell & cell,
const K_Vectors & kv,
const int nspin )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ LIBRPA_COULOMB_V1_COMPLEX_FLAG

int RpaLriDetail::LIBRPA_COULOMB_V1_COMPLEX_FLAG = 1
constexpr

◆ LIBRPA_COULOMB_V1_MARKER

int RpaLriDetail::LIBRPA_COULOMB_V1_MARKER = -20129433
constexpr

◆ LIBRPA_KS_EIGENVECTOR_V1_KIND_COMPLEX_DOUBLE

int RpaLriDetail::LIBRPA_KS_EIGENVECTOR_V1_KIND_COMPLEX_DOUBLE = 28
constexpr

◆ LIBRPA_KS_EIGENVECTOR_V1_MARKER

int RpaLriDetail::LIBRPA_KS_EIGENVECTOR_V1_MARKER = -12345679
constexpr

◆ LIBRPA_LRICOEF_V1_MARKER

int RpaLriDetail::LIBRPA_LRICOEF_V1_MARKER = -10267453
constexpr

◆ LIBRPA_SHRINK_SINVS_V1_MARKER

int RpaLriDetail::LIBRPA_SHRINK_SINVS_V1_MARKER = -30241621
constexpr