Skip to content

Commit

Permalink
just load normally regardless of frequency
Browse files Browse the repository at this point in the history
ahurta92 committed Dec 14, 2023
1 parent 17d4d87 commit 79fa29f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/apps/molresponse/ResponseBase.hpp
Original file line number Diff line number Diff line change
@@ -61,13 +61,8 @@ class LoadFrequencyXSpace : public LoadXSpaceStrategy {
for (size_t i = 0; i < r_params.num_states(); i++)
for (size_t j = 0; j < r_params.num_orbitals(); j++) ar & chi_new.x[i][j];
world.gop.fence();
if (r_params.omega() == 0.0) {
for (size_t i = 0; i < r_params.num_states(); i++)
for (size_t j = 0; j < r_params.num_orbitals(); j++) chi_new.y[i][j] = chi_new.x[i][j];
} else {
for (size_t i = 0; i < r_params.num_states(); i++)
for (size_t j = 0; j < r_params.num_orbitals(); j++) ar & chi_new.y[i][j];
}
for (size_t i = 0; i < r_params.num_states(); i++)
for (size_t j = 0; j < r_params.num_orbitals(); j++) ar & chi_new.y[i][j];
world.gop.fence();

return {chi_new, Tensor<double>()};

0 comments on commit 79fa29f

Please sign in to comment.