Skip to content

Commit

Permalink
Requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FotisKalk committed May 16, 2024
1 parent 3b69be1 commit 4b46ddb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/qstls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ int Qstls::checkAdrFixed(const vector<double> &wvg_,
const bool consistentTheta = abs(Theta_ - in.getDegeneracy()) <= tol;
const bool consistentGrid = wvg_.size() == wvg.size() && wvgMaxDiff <= tol;
if (!consistentMatsubara) {
std::cout << "Inconsistent Matsubara" << std::endl;
std::cerr << "Inconsistent Matsubara" << std::endl;
}
if (!consistentTheta) { std::cout << "Inconsistent Theta" << std::endl; }
if (!consistentGrid) { std::cout << "Inconsistent grid values" << std::endl; }
if (!consistentTheta) { std::cerr << "Inconsistent Theta" << std::endl; }
if (!consistentGrid) { std::cerr << "Inconsistent grid values" << std::endl; }
if (!consistentMatsubara || !consistentTheta || !consistentGrid) { return 1; }
return 0;
}
Expand Down Expand Up @@ -608,6 +608,7 @@ double AdrFixed::integrand1(const double &q, const double &l) const {
double
AdrFixed::integrand2(const double &t, const double &y, const double &l) const {
const double q = itg.getX();
if (q == 0 || t == 0 || y == 0) { return 0; };
const double x2 = x * x;
const double y2 = y * y;
const double q2 = q * q;
Expand Down
2 changes: 1 addition & 1 deletion src/vector3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void Vector3D::fill(const double &num) {
}

void Vector3D::fill(const size_t i, const double &num) {
const auto dest = v.begin() + i * s2 * s3;
const auto &dest = v.begin() + i * s2 * s3;
std::for_each(dest, dest + s2 * s3, [&](double &vi) { vi = num; });
}

Expand Down

0 comments on commit 4b46ddb

Please sign in to comment.