-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d3710f
commit e355609
Showing
5 changed files
with
28 additions
and
24 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This is not run at the moment due to Molly having only AtomsCalculators v0.1 support. | ||
# The plan is also to remove the extension in the future, but saving test here for now. | ||
|
||
using Molly | ||
|
||
@testset "Molly support" begin | ||
pot = load_ace_model(fname_ace) | ||
data = ExtXYZ.Atoms(read_frame(fname_xyz)) | ||
|
||
sys = Molly.System(data, pot) | ||
|
||
@test ace_energy(pot, data) ≈ Molly.potential_energy(sys) | ||
@test all( ace_forces(pot, data) .≈ Molly.forces(sys) ) | ||
|
||
simulator = VelocityVerlet( | ||
dt=1.0u"fs", | ||
coupling=AndersenThermostat(300u"K", 1.0u"ps"), | ||
) | ||
simulate!(sys, simulator, 10) | ||
end |
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