Skip to content

Commit

Permalink
Reduce max subs from 10 to 5 and limit kain to run for maxsubs iterat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
ahurta92 committed Oct 25, 2023
1 parent 2dcdb6f commit 91240f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/apps/molresponse/FrequencyResponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ auto FrequencyResponse::update_response(World &world, X_space &chi, XCOperator<d

auto [new_res, bsh] = update_residual(world, chi, new_chi, r_params.calc_type(), old_residuals, xres_old);
inner_to_json(world, "r_x", response_context.inner(new_res, new_res), iter_function_data);
if (iteration >= 0 && iteration < r_params.maxsub() + 2) {// & (iteration % 3 == 0)) {
if (iteration >= 0 && iteration < r_params.maxsub()) {// & (iteration % 3 == 0)) {
new_chi = kain_x_space_update(world, chi, new_res, kain_x_space);
}
inner_to_json(world, "x_update", response_context.inner(new_chi, new_chi), iter_function_data);
Expand Down
2 changes: 1 addition & 1 deletion src/apps/molresponse/testing/runners.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ void set_frequency_response_parameters(World &world, ResponseParameters &r_param
}
//r_params.set_user_defined_value("archive", std::string("../restartdata"));
r_params.set_user_defined_value("maxiter", size_t(35));
r_params.set_user_defined_value("maxsub", size_t(10));
r_params.set_user_defined_value("maxsub", size_t(5));
r_params.set_user_defined_value("kain", true);
r_params.set_user_defined_value("omega", frequency);
r_params.set_user_defined_value("first_order", true);
Expand Down

0 comments on commit 91240f6

Please sign in to comment.