-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pt): support complete form energy loss (#3782)
Support atomic energy, atomic prefactor force, generalized force, `relative_f`, `enable_atom_ener_coeff` for `EnergyStdLoss`. Support atomic energy, `enable_atom_ener_coeff` for `EnergySpinLoss`. virial support for `EnergySpinLoss` needs discussion and another PR. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new parameters for enhanced energy loss computation, including `relative_f`, `enable_atom_ener_coeff`, and `numb_generalized_coord`. - Improved handling of atomic energy loss with the addition of `pref_ae` calculation. - **Bug Fixes** - Refined conditional logic for energy computation to ensure accurate handling of new parameters. - **Tests** - Expanded test coverage with new classes and methods to validate the new features and ensure consistency. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
3 changed files
with
854 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.