@@ -166,7 +166,7 @@ std::vector<size_t> map_shell_to_basis_function(const std::vector<libint2::Shell
166
166
167
167
168
168
169
-
169
+ /*
170
170
171
171
// Computing the integrals between two shells serial
172
172
MATRIX compute_1body_ints(const std::vector<libint2::Shell>& shells_1, const std::vector<libint2::Shell>& shells_2,libint2::Operator obtype)
@@ -206,31 +206,31 @@ MATRIX compute_1body_ints(const std::vector<libint2::Shell>& shells_1, const std
206
206
207
207
// loop over unique shell pairs, {s1,s2} such that s1 >= s2
208
208
// this is due to the permutational symmetry of the real integrals over Hermitian operators: (1|2) = (2|1)
209
- std::cout << shells_1.size ();
209
+ // std::cout << shells_1.size();
210
210
for(auto s1=0; s1!=shells_1.size(); ++s1) {
211
211
212
212
auto bf1 = shell2bf_1[s1]; // first basis function in this shell
213
- std::cout << " Flag bf1: " << bf1 << " \n " ;
213
+ // std::cout << "Flag bf1: " << bf1 << "\n";
214
214
auto n1 = shells_1[s1].size();
215
215
216
- std::cout << " shells_1[s1]" << shells_1[s1].size () << " \n " ;
216
+ // std::cout << "shells_1[s1]" << shells_1[s1].size() << "\n";
217
217
218
218
//for(auto s2=0; s2<=s1; ++s2) {
219
219
for(auto s2=0; s2!=shells_2.size(); ++s2) {
220
220
221
221
auto bf2 = shell2bf_2[s2];
222
- std::cout << " Flag bf2: " << bf2 << " \n " ;
222
+ // std::cout << "Flag bf2: " << bf2 << "\n";
223
223
auto n2 = shells_2[s2].size();
224
224
225
- std::cout << " shells_2[s2]" << shells_2[s2].size () << " \n " ;
225
+ // std::cout << "shells_2[s2]" << shells_2[s2].size() << "\n";
226
226
227
227
// compute shell pair
228
228
engine.compute(shells_1[s1], shells_2[s2]);
229
229
//std::cout << "Flag after engine.compute" << "\n";
230
230
// "map" buffer to a const Eigen Matrix, and copy it to the corresponding blocks of the result
231
231
Eigen::Map<const Matrix> buf_mat(buf[0], n1, n2);
232
- std::cout << " Flag after buf_mat" << " \n " << " buf_mat.size: \n " << buf_mat.size () << " \n " ;
233
- std::cout << " Flag after buf_mat" << " \n " << " buf_mat \n " << buf_mat << " \n " ;
232
+ // std::cout << "Flag after buf_mat" << "\n" << "buf_mat.size: \n" << buf_mat.size() << "\n";
233
+ // std::cout << "Flag after buf_mat" << "\n" << "buf_mat \n" << buf_mat << "\n";
234
234
//std::cout << "Flag after buf_mat" << "\n" << "bf1.size" << bf1.size() << "\n";
235
235
//std::cout << "Flag after buf_mat" << "\n" << "bf2.size" << bf2.size() << "\n";
236
236
result.block(bf1, bf2, n1, n2) = buf_mat;
@@ -240,7 +240,7 @@ MATRIX compute_1body_ints(const std::vector<libint2::Shell>& shells_1, const std
240
240
//std::cout << "Flag after buf_mat.transpose" << "\n";
241
241
}
242
242
}
243
- std::cout << " Flag before MATRIX res" << " \n " ;
243
+ // std::cout << "Flag before MATRIX res" << "\n";
244
244
MATRIX res(n_1, n_2);
245
245
for(int i=0;i<n_1;i++){
246
246
for(int j=0; j<n_2;j++){
@@ -252,7 +252,7 @@ MATRIX compute_1body_ints(const std::vector<libint2::Shell>& shells_1, const std
252
252
return res;
253
253
}
254
254
255
-
255
+ */
256
256
257
257
258
258
// Computing the integrals between two shells in parallel using OpenMP (This is also adopted from libint test files with some modifications)
@@ -305,11 +305,12 @@ libint2::Operator obtype, int nthreads){
305
305
const auto & buf = engines[thread_id].results ();
306
306
307
307
for (auto s1 = 0l , s12 = 0l ; s1 != shells_1.size (); ++s1) {
308
+ // for (auto s1 = 0; s1 < shells_1.size(); ++s1) {
308
309
auto bf1 = shell2bf1[s1]; // first basis function in this shell
309
310
auto n1 = shells_1[s1].size ();
310
311
// std::cout << "shells_1[" << s1 << "]" << shells_1[s1].size() << "\n";
311
312
auto s1_offset = s1 * (s1+1 ) / 2 ;
312
- // for (auto s2= 0; s2<=s1 ; ++s2) {
313
+ // for (auto s2 = 0; s2 < shells_2.size() ; ++s2) {
313
314
for (auto s2=0 ; s2!= shells_2.size (); ++s2) {
314
315
// std::cout << "shells_2[" << s2 << "]" << shells_2[s2].size() << "\n";
315
316
auto s12 = s1_offset + s2;
@@ -376,25 +377,26 @@ MATRIX compute_overlaps(const std::vector<libint2::Shell>& shells_1, const std::
376
377
libint2::initialize ();
377
378
// Compute the AO overlap matrix
378
379
auto S = compute_1body_ints_parallel (shells_1, shells_2, Operator::overlap, nthreads);
379
- std::cout << " \n\t Finished computing overlap integral\n " ;
380
+ // std::cout << "\n\tFinished computing overlap integral\n";
380
381
// End of AO matrix calculation
381
382
libint2::finalize (); // done with libint
382
383
383
384
return S;
384
385
}
385
386
386
387
387
-
388
+ /*
388
389
MATRIX compute_overlaps_serial(const std::vector<libint2::Shell>& shells_1, const std::vector<libint2::Shell>& shells_2) {
389
390
// Initialize Libint
390
391
libint2::initialize();
391
392
// Compute the AO overlap matrix
392
393
auto S = compute_1body_ints(shells_1, shells_2, Operator::overlap);
393
- std::cout << " \n\t Finished computing overlap integral\n " ;
394
+ // std::cout << "\n\tFinished computing overlap integral\n";
394
395
libint2::finalize(); // done with libint
395
396
return S;
396
397
}
397
398
399
+ */
398
400
399
401
400
402
}// namespace liblibint2_wrappers
0 commit comments