Skip to content

Commit

Permalink
some print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ahurta92 committed Oct 26, 2023
1 parent 3efccf6 commit 39f5026
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/apps/molresponse/ResponseBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,8 @@ auto ResponseBase::kain_x_space_update(World &world, const X_space &chi, const X
auto temp = kain_x_space[i].update(x_vectors[i], x_residuals[i]);
std::copy(temp.begin(), temp.begin() + n, kain_update.x[i].begin());
std::copy(temp.begin() + n, temp.end(), kain_update.y[i].begin());
}else{
if (world.rank() == 0) print("skipping update for state: ", i, " residual norm: ", residual_norms(i));
}
};
} else {
Expand All @@ -1208,6 +1210,8 @@ auto ResponseBase::kain_x_space_update(World &world, const X_space &chi, const X
for (const auto &i: Chi.active) {
if (residual_norms(i) > max_rotation) {
kain_update.x[i] = kain_x_space[i].update(chi.x[i], residual_chi.x[i]);
} else {
if (world.rank() == 0) print("skipping update for state: ", i, " residual norm: ", residual_norms(i));
}
}
}
Expand Down

0 comments on commit 39f5026

Please sign in to comment.