Skip to content

Commit

Permalink
reduce unit test cost
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhai committed Oct 6, 2023
1 parent 4bf127b commit 4dd7ba2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions unit_test/mpi/test_dmrg_sa_1site_n2_sto3g.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ TEST_F(TestOneSiteDMRGN2STO3GSA, TestSU2) {
shared_ptr<HamiltonianQC<SU2, double>> hamil =
make_shared<HamiltonianQC<SU2, double>>(vacuum, norb, orbsym, fcidump);

test_dmrg<SU2, double>(targets, energies, hamil, "SU2", 200, 10);
test_dmrg<SU2, double>(targets, energies, hamil, "SU2", 200, 6);

hamil->deallocate();
fcidump->deallocate();
Expand Down Expand Up @@ -253,7 +253,7 @@ TEST_F(TestOneSiteDMRGN2STO3GSA, TestSZ) {

test_dmrg<SZ, double>(
targets, energies, hamil, "SZ",
(ubond_t)min(400U, (uint32_t)numeric_limits<ubond_t>::max()), 16);
(ubond_t)min(400U, (uint32_t)numeric_limits<ubond_t>::max()), 7);

hamil->deallocate();
fcidump->deallocate();
Expand Down
2 changes: 1 addition & 1 deletion unit_test/mpi/test_dmrg_sa_n2_sto3g.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ TEST_F(TestDMRGN2STO3GSA, TestSZ) {

test_dmrg<SZ, double>(
targets, energies, hamil, "SZ",
(ubond_t)min(400U, (uint32_t)numeric_limits<ubond_t>::max()), 16);
(ubond_t)min(400U, (uint32_t)numeric_limits<ubond_t>::max()), 7);

hamil->deallocate();
fcidump->deallocate();
Expand Down
4 changes: 2 additions & 2 deletions unit_test/mpi/test_dmrg_sa_tto_n2_sto3g.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ TEST_F(TestTTODMRGN2STO3GSA, TestSU2) {
for (int tto = 3; tto < 5; tto++)
test_dmrg<SU2, double>(
targets, energies, hamil, "SU2",
(ubond_t)min(200U, (uint32_t)numeric_limits<ubond_t>::max()), 10,
(ubond_t)min(200U, (uint32_t)numeric_limits<ubond_t>::max()), 6,
tto);

hamil->deallocate();
Expand Down Expand Up @@ -264,7 +264,7 @@ TEST_F(TestTTODMRGN2STO3GSA, TestSZ) {
for (int tto = 3; tto < 5; tto++)
test_dmrg<SZ, double>(
targets, energies, hamil, "SZ",
(ubond_t)min(400U, (uint32_t)numeric_limits<ubond_t>::max()), 16,
(ubond_t)min(400U, (uint32_t)numeric_limits<ubond_t>::max()), 7,
tto);

hamil->deallocate();
Expand Down
4 changes: 2 additions & 2 deletions unit_test/test_dmrg_sa_1site_n2_sto3g.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ TYPED_TEST(TestOneSiteDMRGN2STO3GSA, TestSU2) {
shared_ptr<HamiltonianQC<SU2, FL>> hamil =
make_shared<HamiltonianQC<SU2, FL>>(vacuum, norb, orbsym, fcidump);

this->template test_dmrg<SU2>(targets, energies, hamil, "SU2", 200, 10);
this->template test_dmrg<SU2>(targets, energies, hamil, "SU2", 200, 6);

hamil->deallocate();
fcidump->deallocate();
Expand Down Expand Up @@ -211,7 +211,7 @@ TYPED_TEST(TestOneSiteDMRGN2STO3GSA, TestSZ) {

this->template test_dmrg<SZ>(
targets, energies, hamil, "SZ",
(ubond_t)min(400U, (uint32_t)numeric_limits<ubond_t>::max()), 16);
(ubond_t)min(400U, (uint32_t)numeric_limits<ubond_t>::max()), 7);

hamil->deallocate();
fcidump->deallocate();
Expand Down
2 changes: 1 addition & 1 deletion unit_test/test_dmrg_sa_n2_sto3g.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ TYPED_TEST(TestDMRGN2STO3GSA, TestSZ) {

this->template test_dmrg<SZ>(
targets, energies, hamil, "SZ",
(ubond_t)min(400U, (uint32_t)numeric_limits<ubond_t>::max()), 16);
(ubond_t)min(400U, (uint32_t)numeric_limits<ubond_t>::max()), 7);

hamil->deallocate();
fcidump->deallocate();
Expand Down
4 changes: 2 additions & 2 deletions unit_test/test_dmrg_sa_tto_n2_sto3g.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ TYPED_TEST(TestTTODMRGN2STO3GSA, TestSU2) {
for (int tto = 3; tto < 5; tto++)
this->template test_dmrg<SU2>(
targets, energies, hamil, "SU2",
(ubond_t)min(200U, (uint32_t)numeric_limits<ubond_t>::max()), 10,
(ubond_t)min(200U, (uint32_t)numeric_limits<ubond_t>::max()), 6,
tto);

hamil->deallocate();
Expand Down Expand Up @@ -221,7 +221,7 @@ TYPED_TEST(TestTTODMRGN2STO3GSA, TestSZ) {
for (int tto = 3; tto < 5; tto++)
this->template test_dmrg<SZ>(
targets, energies, hamil, "SZ",
(ubond_t)min(400U, (uint32_t)numeric_limits<ubond_t>::max()), 16,
(ubond_t)min(400U, (uint32_t)numeric_limits<ubond_t>::max()), 7,
tto);

hamil->deallocate();
Expand Down

0 comments on commit 4dd7ba2

Please sign in to comment.