@@ -9,18 +9,16 @@ template<typename TA, typename Tcell, std::size_t Ndim, typename Tdata>
99class LR : public Exx <TA,Tcell,Ndim,Tdata>
1010{
1111public:
12- LR (Exx<TA, Tcell, Ndim, Tdata>&& exx) : Exx<TA, Tcell, Ndim, Tdata>::Exx(std::move(exx)) {}
1312 LR (const std::string method = " cvc" ) { this ->method = method; } // Exx default mehtod: "loop3"
13+ LR (Exx<TA, Tcell, Ndim, Tdata>&& exx) : Exx<TA, Tcell, Ndim, Tdata>::Exx(std::move(exx)) {}
1414 using Exx<TA,Tcell,Ndim,Tdata>::cal_force;
1515 // New function: cal_force with two different density matrices
1616 void cal_force (const std::map<TA, std::map<std::pair<TA, std::array<Tcell, Ndim>>, Tensor<Tdata>>>& Ds_left,
1717 const std::array<std::string, 5 >& save_names_suffix = { " " ," " ," " ," " ," " }) // "Cs","Vs","Ds","dCs","dVs"
1818 {
1919 // The only difference from Exx::cal_force: save Ds_left if not empty
20- std::cout << " post_2D adress: " << &(this ->post_2D ) << std::endl;
2120 if (!Ds_left.empty ())
2221 this ->post_2D .saves [" Ds_" + save_names_suffix[2 ]] = this ->post_2D .set_tensors_map2 (Ds_left);
23- std::cout << " set OK" << std::endl;
2422 this ->cal_force (save_names_suffix);
2523 }
2624};
0 commit comments