Skip to content

Commit 5195dc3

Browse files
committed
fix after merge
1 parent dc2254b commit 5195dc3

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

include/RI/physics/Exx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Exx
2929
constexpr static std::size_t Npos = Ndim; // tmp
3030
using Tatom_pos = std::array<Tpos,Npos>; // tmp
3131

32-
Exx() = default;
32+
Exx(const std::string method = "loop3") { this->method = method; }
3333
Exx(Exx&&) noexcept = default;
3434
Exx& operator=(Exx&&) noexcept = default;
3535

include/RI/physics/Exx.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ template<typename TA, typename Tcell, std::size_t Ndim, typename Tdata>
295295
void Exx<TA,Tcell,Ndim,Tdata>::cal_force(
296296
const std::array<std::string,5> &save_names_suffix) // "Cs","Vs","Ds","dCs","dVs"
297297
{
298-
std::cout << "post_2D adress: " << &(this->post_2D) << std::endl;
299298
assert(this->flag_finish.stru);
300299
assert(this->flag_finish.Cs);
301300
assert(this->flag_finish.Vs);

include/RI/physics/LR.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,16 @@ template<typename TA, typename Tcell, std::size_t Ndim, typename Tdata>
99
class LR : public Exx<TA,Tcell,Ndim,Tdata>
1010
{
1111
public:
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

Comments
 (0)