Skip to content

Commit

Permalink
atomic quadrature grid blocking [part 1] (#2336)
Browse files Browse the repository at this point in the history
* initial implementation of atom-wise blocking of quadrature points

* review requests. And shrinking atomic_blocks to correct capacity after distant point removal
  • Loading branch information
hokru committed Feb 4, 2022
1 parent 75e3d56 commit 6141a69
Show file tree
Hide file tree
Showing 6 changed files with 454 additions and 159 deletions.
4 changes: 3 additions & 1 deletion psi4/src/export_functional.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ void export_functional(py::module &m) {
})
.def("refresh", &BlockOPoints::refresh, "docstring")
.def("npoints", &BlockOPoints::npoints, "docstring")
.def("parent_atom", &BlockOPoints::parent_atom, "Returns the atom number this BlockOfPoints belongs to.")
.def("print_out", &BlockOPoints::print, "out_fname"_a = "outfile", "print"_a = 2, "docstring")
.def("shells_local_to_global", &BlockOPoints::shells_local_to_global, "docstring")
.def("functions_local_to_global", &BlockOPoints::functions_local_to_global, "docstring");
Expand Down Expand Up @@ -232,7 +233,8 @@ void export_functional(py::module &m) {
.def("max_points", &MolecularGrid::max_points, "Returns the maximum number of points in a block.")
.def("max_functions", &MolecularGrid::max_functions, "Returns the maximum number of functions in a block.")
.def("collocation_size", &MolecularGrid::collocation_size, "Returns the total collocation size of all blocks.")
.def("blocks", &MolecularGrid::blocks, "Returns a list of blocks.");
.def("blocks", &MolecularGrid::blocks, "Returns a list of blocks.")
.def("atomic_blocks", &MolecularGrid::atomic_blocks, "Returns a list of blocks.");

py::class_<DFTGrid, std::shared_ptr<DFTGrid>, MolecularGrid>(m, "DFTGrid", "docstring")
.def_static("build",
Expand Down
Loading

0 comments on commit 6141a69

Please sign in to comment.