From efb591f8ce08e8d8d3baad27788112362c77a089 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Sat, 14 Sep 2024 17:22:30 +0000 Subject: [PATCH] [pre-commit.ci lite] apply automatic fixes --- source/module_ri/RPA_LRI.hpp | 5 +++-- source/module_ri/write_ri_cv.hpp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/source/module_ri/RPA_LRI.hpp b/source/module_ri/RPA_LRI.hpp index 2a839c5b23..8cae321ff0 100644 --- a/source/module_ri/RPA_LRI.hpp +++ b/source/module_ri/RPA_LRI.hpp @@ -108,10 +108,11 @@ void RPA_LRI::cal_postSCF_exx(const elecstate::DensityMatrix exx_lri_rpa.init(mpi_comm_in, kv, orb); exx_lri_rpa.cal_exx_ions(PARAM.inp.out_ri_cv); - if (exx_spacegroup_symmetry) + if (exx_spacegroup_symmetry) { exx_lri_rpa.cal_exx_elec(Ds, *dm.get_paraV_pointer(), &symrot); - else + } else { exx_lri_rpa.cal_exx_elec(Ds, *dm.get_paraV_pointer()); +} // cout<<"postSCF_Eexx: "<; using TAC = std::pair; template - using TLRI = std::map>>; + using TLRI = std::map>>;; template inline double absmax(const RI::Tensor& t) @@ -91,8 +91,9 @@ namespace LRI_CV_Tools infile >> ia1 >> ia2 >> ic_1 >> ic_2 >> ic_3 >> nabf1 >> nabf2; const TC& box = { ic_1, ic_2, ic_3 }; RI::Tensor tensor_vs({ nabf1, nabf2 }); - for (std::size_t i = 0; i != nabf1; i++) + for (std::size_t i = 0; i != nabf1; i++) { for (std::size_t j = 0; j != nabf2; j++){ infile >> tensor_vs(i, j);} +} if (absmax(tensor_vs) >= threshold) { Vs[ia1 - 1][{ia2 - 1, box}] = tensor_vs; } // else ++cs_discard; }