Skip to content

Commit

Permalink
handle star basis sets with symlinks, char renaming, and install limits
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Sep 18, 2023
1 parent bd318ca commit 607fdb4
Show file tree
Hide file tree
Showing 13 changed files with 3,420 additions and 3,402 deletions.
10 changes: 6 additions & 4 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
Following is a brief summary of changes made in each release of Libint.

- 2022-xx-yy: 2.8.0-beta.1
- UNMERGED PR #270: For Windows, basis sets with a star have been renamed to "s", so 6-31g**.g94 -> 6-31gss.g94.
- UNMERGED PR #270: For Windows, basis sets with a star have been renamed to "s" on the filesystem,
so 6-31g**.g94 -> 6-31gss.g94. Access in code remains unchanged through "6-31g**", etc.
- UNMERGED PR #270: Adapt build system and header imports so that library and Python bindings can build on
Windows (at least with clang-cl compiler atop MSVC). Note that a Linux- or Mac-generated export
builds on Windows; one cannot generate an export on Windows.
- UNMERGED PR #269: minimum CMake bumped to 3.16
- UNMERGED PR #269: Solid harmonics ordering is runtime switchable in the library. Issue
builds on Windows; one cannot generate an export on Windows. Note also that only a static library
build, not a shared one, works on Windows (see #237).
- PR #269: minimum CMake bumped to 3.16
- PR #269: Solid harmonics ordering is runtime switchable in the library. Issue
`libint2::set_solid_harmonics_ordering(libint2::SHGShellOrdering_Gaussian)` or `_Standard` after
initialization. Similarly, prefer new `INT_SOLIDHARMINDEX(sho, l, m)` to usual `(l, m)` version.
- PR #268: Python detection (relevant to Python bindings, Fortran, and some tests) now uses modern
Expand Down
11 changes: 10 additions & 1 deletion export/cmake/CMakeLists.txt.export
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,19 @@ else()
endif()

# install basis set library
install(DIRECTORY ${PROJECT_SOURCE_DIR}/lib/basis
if(MSVC)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/lib/basis
COMPONENT libint2
DESTINATION "${LIBINT2_INSTALL_DATADIR}"
REGEX "6*\\*\\*.g94" EXCLUDE
REGEX "6*\\*.g94" EXCLUDE
)
else()
install(DIRECTORY ${PROJECT_SOURCE_DIR}/lib/basis
COMPONENT libint2
DESTINATION "${LIBINT2_INSTALL_DATADIR}"
)
endif()

# LibintCXX library ====================================================================================================

Expand Down
3 changes: 3 additions & 0 deletions include/libint2/basis.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ namespace libint2 {
char cc = ::tolower(c);
switch (cc) {
case '/': cc = 'I'; break;
#ifdef _MSC_VER
case '*': cc = 's'; break;
#endif
}
return cc;
}
Expand Down
Loading

0 comments on commit 607fdb4

Please sign in to comment.