Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maki49 committed Mar 19, 2024
1 parent 59abc89 commit 354071f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions source/module_ri/Exx_LRI_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,14 @@ class Exx_LRI_Interface
Exx_LRI_Interface(std::shared_ptr<Exx_LRI<Tdata>> exx_ptr) : exx_ptr(exx_ptr) {}
Exx_LRI_Interface() = delete;

void write_Hexxs(const std::string &file_name) const;
/// read and write Hexxs using cereal
void write_Hexxs(const std::string& file_name) const;
void read_Hexxs(const std::string& file_name);

/// read and write Hexxs in CSR format
void write_Hexxs(const std::string& file_name, const UnitCell& ucell) const;
void read_Hexxs(const std::string& file_name, const UnitCell& ucell);

std::map<Abfs::Vector3_Order<int>, std::map<size_t, std::map<size_t, Tdata>>>
calculate_RI_Tensor_sparse(const double& sparse_threshold,
const std::map<int, std::map<TAC, RI::Tensor<Tdata>>>& hR, const UnitCell& ucell)const;

std::vector< std::map<int, std::map<TAC, RI::Tensor<Tdata>>>>& get_Hexxs() const { return this->exx_ptr->Hexxs; }

Tdata& get_Eexx() const { return this->exx_ptr->Eexx; }
Expand All @@ -61,6 +59,13 @@ class Exx_LRI_Interface
int& iter);

private:

/// calculate CSR sparse matrix from the global matrix stored with RI::Tensor
/// the return type is same as LCAO_Matrix::SR_sparse, HR_sparse, etc.
std::map<Abfs::Vector3_Order<int>, std::map<size_t, std::map<size_t, Tdata>>>
calculate_RI_Tensor_sparse(const double& sparse_threshold,
const std::map<int, std::map<TAC, RI::Tensor<Tdata>>>& hR, const UnitCell& ucell)const;

std::shared_ptr<Exx_LRI<Tdata>> exx_ptr;
Mix_DMk_2D mix_DMk_2D;
int two_level_step = 0;
Expand Down

0 comments on commit 354071f

Please sign in to comment.