Skip to content

Commit

Permalink
Use method convert_to_k() in hila_healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
KariRummukainen committed Jan 12, 2024
1 parent dc835e7 commit 849520e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions applications/hila_healthcheck/src/hila_healthcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ void fft_test() {
kx[d] = hila::broadcast(hila::random()) * lattice.size(d);
}

kv = convert_to_k(kx);
kv = kx.convert_to_k();


onsites(ALL) {
double d = kv.dot(X.coordinates());
Expand Down Expand Up @@ -449,8 +450,9 @@ void fft_test() {
//-----------------------------------------------------------------
// Check fft norm


onsites(ALL) {
p[X] = hila::random() * exp(-convert_to_k(X.coordinates()).squarenorm());
p[X] = hila::random() * exp(-X.coordinates().convert_to_k().squarenorm());
}
f = p.FFT(fft_direction::back) / sqrt(lattice.volume());

Expand Down Expand Up @@ -493,7 +495,7 @@ void spectraldensity_test() {
foralldir(d) {
kx[d] = hila::broadcast(hila::random()) * lattice.size(d);
}
kv = convert_to_k(kx);
kv = kx.convert_to_k();
auto absk = kv.norm();

// test first std. binning (normally )
Expand Down

0 comments on commit 849520e

Please sign in to comment.