Skip to content

Commit

Permalink
updated sym/nonsym tests to work with fermionic or bosonic functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkaye committed Sep 21, 2023
1 parent 8b47868 commit 2b4440a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/c++/symcompare_if.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main() {

double lambda = 1000; // DLR cutoff
double eps = 1e-10; // DLR tolerance
auto statistic = Fermion; // Fermionic Green's function
auto statistic = Boson; // Fermionic Green's statistics

double beta = 1000; // Inverse temperature
int nmaxtst = 10000; // # imag time test points
Expand All @@ -63,7 +63,7 @@ int main() {

// Get DLR frequencies
auto dlr_rf = build_dlr_rf(lambda, eps);
auto dlr_rf_sym = build_dlr_rf(lambda, eps, Fermion, SYM);
auto dlr_rf_sym = build_dlr_rf(lambda, eps, statistic, SYM);

int r = dlr_rf.size();
int rsym = dlr_rf_sym.size();
Expand Down
5 changes: 3 additions & 2 deletions test/c++/symcompare_it.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ int main() {

double lambda = 1000; // DLR cutoff
double eps = 1e-10; // DLR tolerance
auto statistic = Boson; // Green's function statistics

double beta = 1000; // Inverse temperature
int ntst = 10000; // # imag time test points
Expand All @@ -59,14 +60,14 @@ int main() {

// Get DLR frequencies
auto dlr_rf = build_dlr_rf(lambda, eps);
auto dlr_rf_sym = build_dlr_rf(lambda, eps, Fermion, SYM);
auto dlr_rf_sym = build_dlr_rf(lambda, eps, statistic, SYM);

int r = dlr_rf.size();
int rsym = dlr_rf_sym.size();

// Get DLR imaginary time object
auto itops = imtime_ops(lambda, dlr_rf);
auto itops_sym = imtime_ops(lambda, dlr_rf_sym, Fermion, SYM);
auto itops_sym = imtime_ops(lambda, dlr_rf_sym, statistic, SYM);

// Sample Green's function G at DLR imaginary time nodes
auto const &dlr_it = itops.get_itnodes();
Expand Down

0 comments on commit 2b4440a

Please sign in to comment.