ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
rpa_lri_detail.h File Reference
#include "source_psi/psi.h"
#include <complex>
#include <cstddef>
#include <cstdint>
#include <iosfwd>
#include <string>
#include <vector>
#include <mpi.h>
Include dependency graph for rpa_lri_detail.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RpaLriDetail::KSEigenvectorMpiLayout

Namespaces

namespace  RI
namespace  RpaLriDetail

Functions

void RpaLriDetail::trim_malloc_cache ()
void RpaLriDetail::write_stru_sym (std::ostream &output, const UnitCell &cell, const K_Vectors &kv, const int nspin)
bool RpaLriDetail::debug_dump_exx_ao_enabled ()
std::size_t RpaLriDetail::coulomb_atom_pair_index (const std::size_t I, const std::size_t J, const std::size_t natoms)
void RpaLriDetail::checked_write (std::ofstream &ofs, const void *data, const std::size_t bytes, const std::string &filename)
unsigned long long RpaLriDetail::checked_mul_u64 (const unsigned long long lhs, const unsigned long long rhs, const std::string &context)
unsigned long long RpaLriDetail::checked_add_u64 (const unsigned long long lhs, const unsigned long long rhs, const std::string &context)
std::int64_t RpaLriDetail::checked_i64_from_u64 (const unsigned long long value, const std::string &context)
std::int32_t RpaLriDetail::checked_i32_from_size (const std::size_t value, const std::string &context)
std::int32_t RpaLriDetail::checked_i32_from_int (const int value, const std::string &context)
int RpaLriDetail::sum_int_vector (const std::vector< int > &values)
double RpaLriDetail::real_as_double (const std::complex< double > &value)
std::vector< std::vector< int > > RpaLriDetail::collect_abfs_l_nchi (const std::vector< std::vector< std::vector< Numerical_Orbital_Lm > > > &abfs)
std::vector< std::vector< int > > RpaLriDetail::collect_wfc_l_nchi (const UnitCell &ucell)
int RpaLriDetail::basis_size_from_shell_counts (const std::vector< int > &shell_counts)
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)
template<typename Value>
void RpaLriDetail::write_scalar (std::ofstream &ofs, const Value &value, const std::string &filename)
double RpaLriDetail::real_as_double (double value)
bool RpaLriDetail::has_valid_matrix_shape (const RI::Tensor< double > &tensor)
void RpaLriDetail::abort_output (MPI_Comm comm, const std::string &message)
std::string RpaLriDetail::mpi_error_string (const int error_code)
void RpaLriDetail::collective_mpi_check (const MPI_Comm mpi_comm, const int local_error, const std::string &context)
void RpaLriDetail::collective_require (const MPI_Comm mpi_comm, const bool local_condition, const std::string &context)
MPI_Aint RpaLriDetail::checked_mpi_aint_from_u64 (const unsigned long long value, const std::string &context)
MPI_Offset RpaLriDetail::checked_mpi_offset_from_u64 (const unsigned long long value, const std::string &context)
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)
int RpaLriDetail::free_ks_eigenvector_mpi_layout (KSEigenvectorMpiLayout &layout)
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)

Variables

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