Skip to content

Commit

Permalink
WIP: Add eshift to restart file to preserve continuity
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Dec 1, 2023
1 parent 51ccb46 commit 1926f2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sh_integ.F90
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ end subroutine sh_set_energy_shift
subroutine sh_write_wf(outunit)
integer, intent(in) :: outunit
integer :: ist1
write (outunit, *) eshift
do ist1 = 1, nstate
write (outunit, *) cel_re(ist1), cel_im(ist1)
end do
Expand All @@ -466,6 +467,7 @@ subroutine sh_read_wf(inunit)
allocate (cel_re(nstate), cel_im(nstate))
end if

read (inunit, *) eshift
do ist1 = 1, nstate
read (inunit, *) cel_re(ist1), cel_im(ist1)
end do
Expand Down

0 comments on commit 1926f2e

Please sign in to comment.