Skip to content

Commit

Permalink
Hotfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathonMisiewicz committed Oct 9, 2024
1 parent 107eb5a commit fb1691b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/madness/mra/gfit.h
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ class GFit {
// in the moment list
//
// <r^i|gj> cj = <r^i|exact-remainder>
const long nmom = 1;
const long nmom = 0;
if (nmom > 0) {
Tensor<double> q(4), qg(4);
double range = sqrt(-log(1e-6)/expnt[nmom-1]);
Expand Down
4 changes: 3 additions & 1 deletion src/madness/mra/operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,10 @@ namespace madness {
Tensor<Q> coeff=fit.coeffs();
Tensor<Q> expnt=fit.exponents();

// WARNING! More fine-grained control over the last argument is needed.
// This is a hotfix.
if (bc(0,0) == BC_PERIODIC) {
fit.truncate_periodic_expansion(coeff, expnt, cell_width.max(), false);
fit.truncate_periodic_expansion(coeff, expnt, cell_width.max(), true);
}

return std::make_pair(coeff,expnt);
Expand Down

0 comments on commit fb1691b

Please sign in to comment.