Skip to content

Commit a37df91

Browse files
committed
add inv_masses to Replica
1 parent a36008c commit a37df91

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/types.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,19 +1033,21 @@ function ReplicaSystem(;
10331033

10341034
atom_masses = mass.(atoms)
10351035
M = typeof(atom_masses)
1036+
inv_masses = T(1) ./ atom_masses
1037+
IM = typeof(inv_masses)
10361038

10371039
k_converted = convert_k_units(T, k, energy_units)
10381040
K = typeof(k_converted)
10391041

10401042
replicas = Tuple(System{D, AT, T, A, C, B, V, AD, TO, typeof(replica_pairwise_inters[i]),
10411043
typeof(replica_specific_inter_lists[i]), typeof(replica_general_inters[i]),
10421044
typeof(replica_constraints[i]), NF, typeof(replica_loggers[i]), F, E, K,
1043-
M, Nothing}(
1045+
M, IM, Nothing}(
10441046
atoms, replica_coords[i], boundary, replica_velocities[i], atoms_data,
10451047
replica_topology[i], replica_pairwise_inters[i], replica_specific_inter_lists[i],
10461048
replica_general_inters[i], replica_constraints[i],
10471049
deepcopy(neighbor_finder), replica_loggers[i], replica_dfs[i],
1048-
force_units, energy_units, k_converted, atom_masses, nothing) for i in 1:n_replicas)
1050+
force_units, energy_units, k_converted, atom_masses, inv_masses, nothing) for i in 1:n_replicas)
10491051
R = typeof(replicas)
10501052

10511053
return ReplicaSystem{D, AT, T, A, AD, EL, F, E, K, R, DA}(

0 commit comments

Comments
 (0)