Skip to content

Commit

Permalink
comment out some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
terasakisatoshi committed Dec 21, 2024
1 parent bc6af93 commit 6cc3b79
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions test/augment.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ TEST_CASE("Augmented bosonic basis") {
// Create bosonic basis
auto kernel = LogisticKernel(beta * wmax);
auto sve_result = compute_sve(kernel, 1e-6);
auto basis = make_shared<FiniteTempBasis<T>>(Bosonic(), beta, wmax, 1e-6, kernel, sve_result);

auto basis = make_shared<FiniteTempBasis<Bosonic>>(beta, wmax, 1e-6, kernel, sve_result);
// Create augmented basis with TauConst and TauLinear
/*
vector<unique_ptr<AbstractAugmentation<T>>> augmentations;
augmentations.push_back(make_unique<TauConst<T>>(beta));
augmentations.push_back(make_unique<TauLinear<T>>(beta));
//augmentations.push_back(make_unique<TauConst<T>>(beta));
//augmentations.push_back(make_unique<TauLinear<T>>(beta));
AugmentedBasis<T> basis_aug(basis, augmentations);
REQUIRE(basis_aug.size() == basis->size() + 2);
Expand Down Expand Up @@ -62,10 +62,12 @@ TEST_CASE("Augmented bosonic basis") {
Eigen::VectorX<T> gtau_reconst = tau_matrix * gl_fit;
REQUIRE(gtau_reconst.isApprox(gtau, 1e-14 * magn));
*/
}


TEST_CASE("Vertex basis with stat = $stat", "[augment]") {
/*
for (const shared_ptr<Statistics>& stat : {make_shared<Fermionic>(), make_shared<Bosonic>()}) {
using T = double;
T beta = 1000.0;
Expand Down Expand Up @@ -118,9 +120,10 @@ TEST_CASE("unit tests", "[augment]") {
REQUIRE(basis_aug.u.size() == len_aug);
REQUIRE(basis_aug.u(0.8).size() == len_aug);
REQUIRE(basis_aug.uhat(MatsubaraFreq<T>(4)).size() == len_aug);
//REQUIRE(basis_aug.uhat(MatsubaraFreq<T>(4.0)).size() == len_aug);
REQUIRE(basis_aug.u.minCoeff() == 0.0);
REQUIRE(basis_aug.u.maxCoeff() == beta);
//Further tests omitted for brevity, adapt as needed from Julia code.
*/
}

0 comments on commit 6cc3b79

Please sign in to comment.