Skip to content

Commit

Permalink
Always copy all states. Not just active ones
Browse files Browse the repository at this point in the history
  • Loading branch information
ahurta92 committed Jul 1, 2024
1 parent 7c6687d commit fa8be99
Showing 1 changed file with 1 addition and 1 deletion.
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 (const auto &i: active) {
for (int i = 0; i < new_x.num_states(); i++) {
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 fa8be99

Please sign in to comment.