Skip to content

Commit

Permalink
support Julia v1.11 public API (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjarvinen authored Aug 27, 2024
1 parent 3bff692 commit a076819
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ version = "0.2.2"

[deps]
AtomsBase = "a963bdd2-2df7-4f54-a1ee-49d51e6be12a"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

[compat]
AtomsBase = "0.3, 0.4"
Compat = "4.12"
StaticArrays = "1"
Test = "1"
Unitful = "1"
Expand Down
25 changes: 25 additions & 0 deletions src/AtomsCalculators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,34 @@ module AtomsCalculators


using AtomsBase: AbstractSystem
using Compat: @compat
using StaticArrays
using Unitful

@compat public Energy
@compat public Forces
@compat public Virial
@compat public calculate
@compat public energy_forces
@compat public energy_forces!
@compat public energy_forces_virial
@compat public energy_forces_virial!
@compat public energy_unit
@compat public forces
@compat public forces!
@compat public get_parameters
@compat public get_state
@compat public length_unit
@compat public potential_energy
@compat public promote_force_type
@compat public set_parameters!
@compat public set_state!
@compat public virial
@compat public zero_energy
@compat public zero_forces
@compat public zero_virial


include("interface.jl")
include("utils.jl")
include("submodules/Testing.jl")
Expand Down

0 comments on commit a076819

Please sign in to comment.