Skip to content

Commit

Permalink
Get rid of that strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
ahurta92 committed Oct 26, 2023
1 parent 0d69030 commit 7d08b44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apps/molresponse/FrequencyResponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,10 @@ auto FrequencyResponse::update_response(World &world, X_space &chi, XCOperator<d
inner_to_json(world, "r_x", response_context.inner(new_res, new_res), iter_function_data);
X_space kain_chi;
if (iteration >= 0) {// & (iteration % 3 == 0)) {
kain_chi = kain_x_space_update(world, chi, new_res, kain_x_space, max_rotation);
new_chi = kain_x_space_update(world, chi, new_res, kain_x_space, max_rotation);
}
// here only accept the kain updates if residual_norm is bigger than max_rotaion
/*
for (const auto &b: chi.active) {
if (bsh_norms[b] > max_rotation) {
new_chi.x[b] = kain_chi.x[b];
Expand All @@ -285,6 +286,7 @@ auto FrequencyResponse::update_response(World &world, X_space &chi, XCOperator<d
" is smaller than max rotation: ", max_rotation);
}
}
*/


inner_to_json(world, "x_update", response_context.inner(new_chi, new_chi), iter_function_data);
Expand Down

0 comments on commit 7d08b44

Please sign in to comment.