Skip to content

Commit 3080609

Browse files
committed
remove osme comments
1 parent c19c573 commit 3080609

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/types.jl

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,10 @@ abstract type Interaction end
3333
"""
3434
Base type for all n-body interactions. `N` denotes the body order
3535
"""
36-
abstract type NBodyInteraction{N} <: Interaction end
36+
abstract type NBodyInteraction{N <: Integer} <: Interaction end
3737

38-
# this would require a lot of code changes, but I think
39-
# could be worthwhile....
40-
# abstract type NBodyInteraction{N <: Integer, NF} <: Interaction end
41-
# use_neighbors(::NBodyInteraction{N, NF}) where {N, NF} = NF
4238

43-
44-
abstract type SpecificInteraction{I, T} <: Interaction end
39+
abstract type SpecificInteraction <: Interaction end
4540
abstract type GeneralInteraction <: Interaction end
4641

4742
"""
@@ -57,7 +52,7 @@ const PairwiseInteraction = NBodyInteraction{2}
5752
5853
A list of specific interactions that involve one atom such as position restraints.
5954
"""
60-
struct InteractionList1Atoms{I, T} <: SpecificInteraction{I, T}
55+
struct InteractionList1Atoms{I, T} <: SpecificInteraction
6156
is::I
6257
inters::T
6358
types::Vector{String}
@@ -70,7 +65,7 @@ end
7065
7166
A list of specific interactions that involve two atoms such as bond potentials.
7267
"""
73-
struct InteractionList2Atoms{I, T} <: SpecificInteraction{I, T}
68+
struct InteractionList2Atoms{I, T} <: SpecificInteraction
7469
is::I
7570
js::I
7671
inters::T
@@ -84,7 +79,7 @@ end
8479
8580
A list of specific interactions that involve three atoms such as bond angle potentials.
8681
"""
87-
struct InteractionList3Atoms{I, T} <: SpecificInteraction{I, T}
82+
struct InteractionList3Atoms{I, T} <: SpecificInteraction
8883
is::I
8984
js::I
9085
ks::I
@@ -99,7 +94,7 @@ end
9994
10095
A list of specific interactions that involve four atoms such as torsion potentials.
10196
"""
102-
struct InteractionList4Atoms{I, T} <: SpecificInteraction{I, T}
97+
struct InteractionList4Atoms{I, T} <: SpecificInteraction
10398
is::I
10499
js::I
105100
ks::I

0 commit comments

Comments
 (0)