Skip to content

Commit

Permalink
Adding a test for writing out adjoints
Browse files Browse the repository at this point in the history
  • Loading branch information
michel2323 committed Nov 5, 2024
1 parent f8ff233 commit c3f7247
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/output_chkp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ fid = Checkpointing.HDF5.h5open("adjoint_chkp.h5", "r")
# List all checkpoints
saved_chkp = sort(parse.(Int, (keys(fid))))
println("Checkpoints saved: $saved_chkp")
chkp = Checkpointing.deserialize(read(fid["3"]))
chkp = Checkpointing.deserialize(read(fid["1"]))
@test isa(chkp, ChkpOut)
@test dx .== chkp.x
close(fid)

0 comments on commit c3f7247

Please sign in to comment.