src/trajectory-io/snapshot.jl

MEDYAN.load_snapshot!

load_snapshot!(c::Context,group::ZGroup)

Empty the context and load the state saved in the snapshot group.

c should be constructed with the same SysDef and parameters as the Context used to create the snapshot. Trying to load a snapshot into a Context constructed with a different system or parameters may lead to unexpected results.

See Snapshot group for more details.