1. 12 May, 2026 1 commit
    • one's avatar
      Add experimental HIP PME fast grid level · 348a03e6
      one authored
      Introduce OPENMM_HIP_PME_FAST_GRID_LEVEL as a HIP-only experimental
      control for reducing automatically selected PME grid dimensions.  A
      positive level repeatedly steps each grid dimension down to the previous
      legal FFT size, while level 0 preserves the existing OpenMM behavior.
      
      Keep explicit user-provided PME grid parameters unchanged so the feature
      only affects automatic grid selection.  This is intended for performance
      and accuracy exploration, not as a default tuning policy.
      348a03e6
  2. 06 Apr, 2026 1 commit
  3. 11 Nov, 2025 1 commit
  4. 06 Nov, 2025 1 commit
  5. 23 Sep, 2025 1 commit
  6. 19 Sep, 2025 1 commit
    • João Morado's avatar
      Reader of Tinker files (#4769) · 939e0af5
      João Morado authored
      
      
      * Add basic version of TinkerFiles
      
      * Refactor TinkerFiles
      
      * Update docstring, type hints, and fix bug when setting box vectors
      
      * Small fixes
      
      * Add unit tests for the TinkerFiles class
      
      * Fixes and updates to TinkerFiles
      
      * Add simuteTinker example
      
      * Update Modeller to work with AMOEBA force fields
      
      * Small fixes
      
      * Relax type hinting
      
      * Fix indices in modeller
      
      * Fix modeller indices
      
      * Fix type hints and usage of Quantity
      
      * Remove numpy protector
      
      * Add reader of .seq files
      
      * Add topology parsing of some protein residues, waters, ions, and generic molecules.
      
      * Miscellaneous improvements
      
      * Update amino acids and nucleotides list
      
      * Various fixes to XML writing, and separate XML writing into a new class
      
      * Comments/warnings
      
      * Add nucleic topological definitions
      
      * Improved handling of peptide residues
      
      * Fix for CYX (disulfide bonds)
      
      * Refactor the topology creation methods
      
      * General improvements, and add support for nucleic-like residues
      
      * No need to handle MP, DP, TP
      
      * Minor improvements
      
      * General refactoring, add automatic determination of topology
      
      * Add TinkerAtomType dataclass, and remove references to biotypes as they are not needed
      
      * Re-add missing parsing of forces and scalars
      
      * Updates to createSystem()
      
      * Add AMOEBA forces
      
      * Add angle-related forces to createSystem
      
      * Add placeholders for missing forces
      
      * Beginning of support for AmoebaMultipoleForce
      
      * Finished support for AmoebaMultipoleForce
      
      * Support for AmoebaVdwForce
      
      * TinkerFiles supports vdw
      
      * Misc updates, and add AmoebaTorsionTorsion, AmoebaWcaDispersion, and AmoebaGeneralizedKirkwood
      
      * Remove XML writer
      
      * Fixes
      
      * Fix wrong indentation in _findBitorsions
      
      * Remove pdb debugging
      
      * Documentation and fixes
      
      * Remove files
      
      * Revert checks in AmoebaVdwForceBuilder and ## @private  markers
      
      * Remove duplicated static methods _getChiralAtomIndex
      
      * Fix GK force
      
      * Fix WcaDispersion force
      
      * Fix WcaDisp
      
      * Fixes and updates
      
      * Cleanup and removing duplicated code
      
      * Bug fixes
      
      * A few more unit conversions
      
      * Minor cleanup
      
      * Misc fixes and updates
      
      * Fix Add AmoebaStretchBendForce
      
      * Simplify force builders
      
      * Update ForceField
      
      * Fix AmoebaPiTorsionForce
      
      * Only add AmoebaWcaDispersionForce if using implicitSolvent
      
      * Simplify amoebaforces
      
      * Stretch torsion and angle torsion
      
      * Misc. fixes
      
      * Improve tests
      
      * Fix cap group identification
      
      * Add/improve tests
      
      * Remove whitespaces from residue names
      
      * Improve tests
      
      * Consistent use of atomClasses list
      
      * Fix match condition in AmoebaOutOfPlaneBendForceBuilder
      
      * Fix AmoebaStretchBendForce
      
      * Final fix for AmoebaStretchBendForce
      
      * Fix AmoebaAngleForce
      
      * Small fixes and improvements
      
      * Update assertion tolerances
      
      * Simplify torsion-torsion force creation
      
      * Small fixes in the tests
      
      * Review comments, type hints, docs for tinkerfiles.py
      
      * Only use standard PDB for AA
      
      * Type hint and docs for amoebaforces
      
      * Reduce tolerances for failing tests
      
      * Fixed error with ZOnly axis type when x particle is not specified
      
      ---------
      Co-authored-by: default avatarpeastman <peastman@stanford.edu>
      939e0af5
  7. 13 Sep, 2025 1 commit
  8. 12 Sep, 2025 1 commit
    • Evan Pretti's avatar
      Add constant potential method (#4870) · f55abcaa
      Evan Pretti authored
      
      
      * Initial implementation of C++ API
      
      * Add kernel interface and information for API generation
      
      * API updates for updating electrode parameters
      
      * Add serialization proxy for ConstantPotentialForce
      
      * Update file headers
      
      * Add CG error tolerance and fix units on getCharges() return value
      
      * Initial implementation of matrix solver
      
      * Fixes and conjugate gradient solver
      
      * Try to fix Linux and Windows builds
      
      * Make sure charge constraint target is on total charge
      
      * Restore handling of exceptions like NonbondedForce since they won't involve electrode atoms
      
      * Ameliorate numerical instability in constrained conjugate gradient
      
      * Fix uninitialized pointers, memory leak, and style
      
      * Set CG tolerance units in Python API
      
      * Test ConstantPotentialForce serialization
      
      * Read/write ExceptionsUsePeriodicBoundaryConditions as bool
      
      * Improve constrained conjugate gradient robustness to roundoff error accumulation
      
      * Recompute matrix if electrode atoms move due to setPositions()
      
      * Tolerance is now in gradient (potential) units again
      
      * Add neutralizing background correction
      
      * Add Python API tests
      
      * Fixes for CG and nonbonded exceptions
      
      * Add initial tests checking against existing NonbondedForce behavior
      
      * Expand test suite and fix some implementation issues
      
      * Add additional tests using larger reference system
      
      * Add Gaussian test
      
      * Finish test against reference computation
      
      * CPU platform implementation
      
      * Fixes for compilation on some platforms
      
      * Fixes for constant potential with AVX/AVX2
      
      * Test linking CPU PME library to constant potential test directly
      
      * Older SWIG versions don't support Python set to C++ set conversion
      
      * Add user guide entry
      
      * Increase speed of reference test
      
      * Conditional building constant potential CPU test is unreliable
      
      * Debugging
      
      * Miscellaneous fixes and improvements for CI
      
      * Cache charges so solver will not run if system and coordinates have not changed
      
      * Preconditioner flag, stability, and automatic detection improvements
      
      * Add GPU platform-specific constant potential kernel classes
      
      * PME and device-host I/O changes to support constant potential
      
      * Initial common constant potential implementation
      
      * Constant potential fixes:
      
      * Fix preconditioner PME position/charge save/restore logic
      
      * Fix reduction synchronization in constant potential solver kernels
      
      * Add double-float accumulation for conjugate gradient solver when
        double unsupported by hardware
      
      * Improve conditioning of a test system, and make sure particles are in or
      out of cutoff for consistency and ease of comparing between platforms
      
      * Reorder guess charges for CG when atom reordering changes positions
      
      * Remove PME queue for now
      
      * Trying to debug optimized direct space derivative kernel
      
      * Remove extraneous debugging lines
      
      * Style updates; just make CPU preconditioner double precision
      
      * Debugging updated optimized direct derivatives kernel for all but OpenCL CPU
      
      * OpenCL CPU implementation of direct space derivatives, and cleanup
      
      * Try to make test even shorter to not time out on CI
      
      * Temporary - Debugging
      
      * Debugging
      
      * Debugging
      
      * Debugging
      
      * Debugging
      
      * Remove debugging code and fix reduction synchronization
      
      * Fix other reductions
      
      * Debugging - are tests hanging or just slow on CI?
      
      * Debugging
      
      * Debugging
      
      * Fix macro for case when double precision is available on hardware
      
      * Remove changes for debugging again
      
      * Try to improve matrix solver cache locality by uploading transpose
      
      * Fixes for atom ordering and periodic images
      
      * Can't rely on reorder listener for cell offset updates
      
      * Test reducing number of contexts and timing for CI
      
      * Debugging
      
      * Remove timing code and revert debugging changes
      
      * Matrix solver and plasma term optimizations
      
      * Reduce CG solver kernel calls and downloads
      
      * Don't read back convergence flag from global memory
      
      * Update PME due to refactoring in master branch
      
      * Faster matrix solver (1st step)
      
      * Faster matrix solver for CUDA
      
      * Faster matrix solver compatibility with non-CUDA platforms
      
      * Matrix solver fixes
      
      * Use warp shuffle reductions when possible
      
      * Attempt to work around intermittent compiler crash in Intel CPU OpenCL
      
      * Optimize CG solver kernel 1
      
      * Rework CG solver so some kernels can use more than 1 block
      
      * Don't run out of shared memory
      
      * Asynchronously download convergence flag while clearing buffers
      
      ---------
      Co-authored-by: default avatarEvan Pretti <pretti@sh03-17n15.int>
      f55abcaa
  9. 29 Aug, 2025 1 commit
  10. 23 Jul, 2025 1 commit
    • Peter Eastman's avatar
      Virtual site for symmetric molecules (#4185) · bb3073d4
      Peter Eastman authored
      * Reference implementation of SymmetrySite
      
      * Common implementation of SymmetrySite
      
      * Removed duplicated code
      
      * Serialization for SymmetrySite
      
      * Fixed compilation error building C wrapper
      
      * Added SymmetrySite to user guide
      
      * Bug fix
      
      * Added P21 test case
      bb3073d4
  11. 05 May, 2025 1 commit
    • Peter Eastman's avatar
      Common implementation of NonbondedForce (#4922) · 2443dcee
      Peter Eastman authored
      * Use common API for kernels
      
      * More code uses common interface
      
      * Bug fixes
      
      * Unified interface for sorting
      
      * Simplified interface for FFT
      
      * Use common event API for synchronization
      
      * Minor changes to make code more consistent between platforms
      
      * Common implementation of NonbondedForce
      
      * Bug fixes
      
      * Flag to enable list of single pairs
      
      * CUDA and OpenCL use common implementation of NonbondedForce
      
      * Fixed compilation error
      
      * HIP uses common implementation of NonbondedForce
      2443dcee
  12. 02 May, 2025 1 commit
  13. 28 Apr, 2025 1 commit
    • Peter Eastman's avatar
      Added computeCurrentPressure() to MonteCarloBarostat (#4881) · bce0c133
      Peter Eastman authored
      * Added computeCurrentPressure() to MonteCarloBarostat
      
      * Use instantaneous temperature to compute pressure
      
      * Added computeCurrentPressure() to MonteCarloAnisotropicBarostat
      
      * Added computeCurrentPressure() to MonteCarloMembraneBarostat
      
      * Fixed compilation error
      
      * Fixed error in typemap
      
      * Added documentation on computing pressure
      
      * Fixed CUDA compilation errors
      
      * Made test case more robust
      
      * Made a test case more robust
      
      * Added computeCurrentPressure() to MonteCarloFlexibleBarostat
      
      * Fixed compilation error
      
      * More documentation on computing pressure
      bce0c133
  14. 25 Apr, 2025 1 commit
  15. 02 Apr, 2025 1 commit
    • Jinfeng's avatar
      Drude wrapper (#4871) · 1ece5c28
      Jinfeng authored
      * modifiy CMakeLists.txt to generate drude fortran wrapper
      
      * modify doxyfile and wrapper generation wrapper
      1ece5c28
  16. 28 Mar, 2025 1 commit
  17. 10 Mar, 2025 1 commit
  18. 25 Nov, 2024 1 commit
  19. 21 Nov, 2024 1 commit
  20. 20 Nov, 2024 1 commit
    • Michael J. Schnieders's avatar
      Updates to AmoebaVdwForce, AmoebaGeneralizedKirkwoodForce and AmoebaWcaDispersionForce (#4647) · 61a908cd
      Michael J. Schnieders authored
      * Update the AMOEBA OpenMM API for vdW, GK and WCA
      
      * Changes needed for the Corrigan et al Generalized Kirkwood model and minor changes to the vdW force to support CpHMD
      
      * Add casts to real for uses of POW in GK; Pass force by reference within the WCA kernel
      
      * Update swigInputConfig for Amoeba vdW and GK forces
      
      * Update TestAPIUnits.testAmoebaVdwForce
      
      * Set the units for getSolventDielectric and getSoluteDielectric to None
      
      * Update default dispersion offset parameter for the AmoebaWcaDispersionForce
      
      * Remove overloaded getParticleParameters and setParticleParameters from AmoebaGeneralizedKirkwoodForce
      
      * Update the AmoebaWcaDispersionForce TestAPIUnits tests to reflect using the correct units for the C++ parameter default values; Update the alanine-dipeptide-amoeba-forces to reflect the updated GK model
      
      * Move neck descreening constants into AmoebaGeneralizedKirkwoodForceImpl; set the default GK dielecticOffset to 0.09; set the default WCA shctd parameter to 0.82
      
      * Fix Python test cases for WCA and GK
      
      * Load AMOEBA/GK parameters into an array of float4
      
      * Cleaned up the AmoebaGeneralizedKirkwoodForce based on feedback from Peter; the one case where backwards compatibility remains a challenge is application of the dielectric offset parameter - in the prior code this was only applied to the nonpolar cavity term, but not to calculation of Born radii; in this revision the dielectric offset is applied to BOTH the nonpolar cavity term and to calculation of Born radii. At this point I can't think of elegant way to maintain backwards compatibility that isn't confusing, nor does it make sense (at least to me) to only apply the concept of the dieletric offset to one aspect (i.e. only to nonpolar cavity or only to Born radii calculation) but not to both.
      
      * Remove 'using std::vector' from AmoebaGeneralizedKirkwoodForceImpl.h; divide by 10 instead of multiplying by 0.1f in amoebaGk.cc
      
      * Added a parameter called descreenOffset, which is applied during calculation of effective Born radii for GK. The parameter dielectricOffset is only used for the nonpolar cavity term consistent with its prior use. All tests in TestAmoebaGeneralizedKirkwoodForce.h are now backwards compatible with their behavior prior to this PR.
      
      * Change two constants in amoebaGk.cc to single precision; Improved the documentation for getNeckConstants in AmoebaGeneralizedKirkwoodForceImpl.h
      
      * Fix comment for setTanhRescaling in AmoebaGeneralizedKirkwoodForce.h, Fix comment for setTanhParameters in AmoebaReferenceGeneralizedKirkwoodForce.h; set the type of parameter GeneralizedKirkwoodTanhRescaling to bool in AmoebaGeneralizedKirkwoodForceProxy.cpp; In ReferenceCalcAmoebaGeneralizedKirkwoodForceKernel return references of per particle parameters instead of copies; update AmoebaReferenceKernels.h method signatures for per particle parameters to return const vector references
      
      * Minor tweaks to the documentation for the tanh rescaling flag
      
      * Improve the comments for the get and setTanhParameters in AmoebaGeneralizedKirkwoodForce.h and AmoebaReferenceGeneralizedKirkwoodForce.h
      61a908cd
  21. 01 Nov, 2024 1 commit
  22. 23 Sep, 2024 1 commit
    • Anton Gorenko's avatar
      Optimize PME spread charge kernel (#4633) · 8ea42950
      Anton Gorenko authored
      * PME_ORDER threads process one atom;
      * PME_ORDER threads access consecutive addresses;
      * No need to permute z indices with zindexTable;
      * finishSpreadCharge is needed only with fixed point charge spreading;
      8ea42950
  23. 05 Sep, 2024 3 commits
  24. 01 Sep, 2024 2 commits
    • Anton Gorenko's avatar
      Cleanup Cmake scripts for HIP platform · aca24d5f
      Anton Gorenko authored
      * Remove setting of link libraries, include and link dirs and compile
        flags for each target, instead let Cmake deal with them by linking the
        main library to hip::host hiprtc::hiprtc hip::hipfft;
      * Fix: custom command without ADD_CUSTOM_TARGET and ADD_DEPENDENCIES is
        executed for both static and shared targets;
      * Remove IF(APPLE) parts.
      aca24d5f
    • Anton Gorenko's avatar
      Add hipification of Amoeba, Drude, RPMD plugins · 6c0f3fbd
      Anton Gorenko authored
      Fix SegFault in HipCalcHippoNonbondedForceKernel
      
          HipSort was created using a temporary ref. Adding `HipContext& cu`
          field to HipCalcHippoNonbondedForceKernel fixes the issue;
      6c0f3fbd
  25. 29 Apr, 2024 1 commit
  26. 28 Mar, 2024 1 commit
  27. 02 Feb, 2024 1 commit
  28. 17 Dec, 2023 1 commit
  29. 15 Dec, 2023 1 commit
  30. 18 Aug, 2023 1 commit
    • bdenhollander's avatar
      Amoeba and ATM Force minor cleanup (#4195) · f2bdcc75
      bdenhollander authored
      * Amoeba minor cleanup
      
      - Fix variable name in string
      - Remove odd space between variable and period that is inconsistently styled
      
      * Replaces random tabs with spaces in ATM Force
      f2bdcc75
  31. 13 Aug, 2023 1 commit
  32. 20 Jul, 2023 1 commit
  33. 04 Jul, 2023 1 commit
  34. 12 Jun, 2023 1 commit
  35. 07 Jun, 2023 1 commit
  36. 31 May, 2023 2 commits