Skip to content

Commit

Permalink
Merge pull request #934 from SALMON-TDDFT/bugfix
Browse files Browse the repository at this point in the history
Bugfix to release version 2.
  • Loading branch information
yhirokawa-ccs authored Jul 21, 2020
2 parents 864f391 + b79cee3 commit 08c1ea9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/common/structures.f90
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ subroutine allocate_vector(rg,field)
do iz=rg%is(3),rg%ie(3)
do iy=rg%is(2),rg%ie(2)
do ix=rg%is(1),rg%ie(1)
field%v = 0d0
field%v(:,ix,iy,iz) = 0d0
end do
end do
end do
Expand All @@ -555,7 +555,7 @@ subroutine allocate_vector_with_ovlp(rg,field)
do iz=rg%is_array(3),rg%ie_array(3)
do iy=rg%is_array(2),rg%ie_array(2)
do ix=rg%is_array(1),rg%ie_array(1)
field%v = 0d0
field%v(:,ix,iy,iz) = 0d0
end do
end do
end do
Expand Down
6 changes: 3 additions & 3 deletions src/ms/main_ms.f90
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,6 @@ subroutine initialization_ms()
end do

! incident field
allocate(Ac_inc(1:3, -1:itotNtime+2))

call Weyl_init(fs, fw)

allocate(fs%imedia(fs%mg%is_array(1):fs%mg%ie_array(1), &
Expand Down Expand Up @@ -348,7 +346,9 @@ subroutine initialization_ms()
call comm_sync_all()
end do

itt = mit; call incident()
itt = mit
allocate(Ac_inc(1:3, -1:itotNtime+2))
call incident()

! Experimental implementation
if (comm_is_root(ms%id_ms_world)) then
Expand Down

0 comments on commit 08c1ea9

Please sign in to comment.