@@ -75,6 +75,7 @@ BOOST_AUTO_TEST_CASE(benzene)
7575 Eigen::Vector3d H6 ( 3.616 , 0.776 , -9.196 );
7676
7777 std::vector<Sphere> spheres;
78+ /*
7879 Sphere sph1(C1, 3.212534412);
7980 Sphere sph2(C2, 3.212534412);
8081 Sphere sph3(C3, 3.212534412);
@@ -88,7 +89,21 @@ BOOST_AUTO_TEST_CASE(benzene)
8889 Sphere sph10(H4, 2.267671349);
8990 Sphere sph11(H5, 2.267671349);
9091 Sphere sph12(H6, 2.267671349);
92+ */
93+ Sphere sph1 (C1, 1.53 );
94+ Sphere sph2 (C2, 1.53 );
95+ Sphere sph3 (C3, 1.53 );
96+ Sphere sph4 (C4, 1.53 );
97+ Sphere sph5 (C5, 1.53 );
98+ Sphere sph6 (C6, 1.53 );
9199
100+ Sphere sph7 (H1, 1.06 );
101+ Sphere sph8 (H2, 1.06 );
102+ Sphere sph9 (H3, 1.06 );
103+ Sphere sph10 (H4, 1.06 );
104+ Sphere sph11 (H5, 1.06 );
105+ Sphere sph12 (H6, 1.06 );
106+
92107 spheres.push_back (sph1);
93108 spheres.push_back (sph2);
94109 spheres.push_back (sph3);
@@ -103,7 +118,7 @@ BOOST_AUTO_TEST_CASE(benzene)
103118 spheres.push_back (sph12);
104119
105120 double probeRadius = 1.385 ; // Probe Radius for water
106- int patchLevel = 2 ;
121+ int patchLevel = 3 ;
107122 double coarsity = 0.5 ;
108123 printf (" TEST 1\n " );
109124 WaveletCavity cavity (spheres, probeRadius, patchLevel, coarsity);
@@ -150,7 +165,7 @@ BOOST_AUTO_TEST_CASE(benzene)
150165 // The total ASC for a dielectric is -Q*[(epsilon-1)/epsilon]
151166 Eigen::VectorXd fake_asc = Eigen::VectorXd::Zero (size);
152167 solver.compCharge (fake_mep, fake_asc);
153- double totalASC = (6 * Ccharge + 6 * Hcharge) * ( permittivity - 1 ) / permittivity;
168+ double totalASC = - (6 * Ccharge + 6 * Hcharge) * ( permittivity - 1 ) / permittivity;
154169 double totalFakeASC = fake_asc.sum ();
155170 std::cout << " totalASC - totalFakeASC = " << totalASC - totalFakeASC << std::endl;
156171 BOOST_REQUIRE_CLOSE (totalASC, totalFakeASC, 3e-2 );
0 commit comments