Skip to content

Commit

Permalink
fix serialization of OpenMMSimulation
Browse files Browse the repository at this point in the history
  • Loading branch information
axsk committed Oct 24, 2024
1 parent adf875e commit 3d3ce0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulators/openmm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ struct OpenMMSimulationSerialized
bias
end

JLD2.writeas(::Type{OpenMMSimulation}) = OpenMMSimulationSerialized
JLD2.writeas(::Type{T}) where {T<:OpenMMSimulation} = OpenMMSimulationSerialized

Base.convert(::Type{OpenMMSimulationSerialized}, sim::OpenMMSimulation) =
OpenMMSimulationSerialized(steps(sim), sim.constructor, sim.bias)
Expand Down

0 comments on commit 3d3ce0d

Please sign in to comment.