Skip to content

Commit

Permalink
return copy to original version
Browse files Browse the repository at this point in the history
  • Loading branch information
ahurta92 committed Oct 26, 2023
1 parent a198211 commit 79d8fb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/apps/molresponse/FrequencyResponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,7 @@ void FrequencyResponse::iterate(World &world) {
iter_function_data["r_d"] = old_density_residual;


if (compute_y) {
Chi = new_chi.copy();
} else {
Chi.x = new_chi.x.copy();
}
Chi= new_chi.copy();

if (r_params.print_level() >= 1) { molresponse::start_timer(world); }
x_residual = copy(new_res.residual_norms);
Expand All @@ -220,8 +216,6 @@ void FrequencyResponse::iterate(World &world) {
printf("\n--------Response Properties after %d-------------\n", static_cast<int>(iter));
print("<<X,P>> at omega =", omega);
print(polar);
print("res r<<X,P>> at omega =", omega);
print(res_polar);
}
}
if (r_params.print_level() >= 1) {
Expand Down
2 changes: 1 addition & 1 deletion src/apps/molresponse/x_space.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace madness {
[[nodiscard]] X_space copy() const {
auto &world = x[0][0].world();
auto new_x = X_space(*this);// copy
for (int i = 0; i < new_x.num_states(); i++) {
for (const auto &i: new_x.active) {
new_x.x[i] = madness::copy(world, x[i], false);
new_x.y[i] = madness::copy(world, y[i], false);
}
Expand Down

0 comments on commit 79d8fb2

Please sign in to comment.