openmopac / mopac

Molecular Orbital PACkage
http://openmopac.net
GNU Lesser General Public License v3.0
111 stars 31 forks source link

XYZ & packaging bug fixes #199

Closed godotalgorithm closed 4 months ago

godotalgorithm commented 4 months ago

The XYZ keyword should have absolutely no effect on geometries given in Cartesian coordinates, but its current behavior can change optimization flags of the 1st 3 atoms in some edge cases. I've minimally modified its behavior to avoid this problem, but there are some fundamental ambiguities about mixing Cartesian and internal coordinates that make the behavior impossible to specify in a sensible manner for all cases.

Also, a minor packaging bug was reported that the Windows zip-based installer doesn't include the DLL for OpenMP, which I've fixed here.

This also contains a very minor touch-up of localizing the memory workspaces for the Pulay mixer so that it doesn't take up excess memory when not in use. I hastily added the workspace to the common arrays when I first implemented the BLAS-based Pulay mixer, which unnecessarily increased MOPAC's base memory footprint. The memory management inside of the SCF cycle is not especially optimized, so the memory footprint can probably be further reduced, but it's a rather big mess to sort through.

Status

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 53.12500% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 66.75%. Comparing base (ce31f37) to head (a968191).

Files Patch % Lines
src/SCF/iter.F90 53.84% 6 Missing :warning:
src/input/readmo.F90 14.28% 6 Missing :warning:
src/input/getgeo.F90 62.50% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #199 +/- ## ========================================== - Coverage 66.76% 66.75% -0.02% ========================================== Files 332 332 Lines 74071 74082 +11 ========================================== - Hits 49456 49454 -2 - Misses 24615 24628 +13 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.