Skip to content

Commit

Permalink
Merge pull request wannier-developers#149 from jryates/develop
Browse files Browse the repository at this point in the history
Fix for restarts: parallel (plotting), serial and paralllel (site sym)
  • Loading branch information
giovannipizzi authored Dec 4, 2017
2 parents a68d704 + b5e1db7 commit 8ee66da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/wannier_prog.F90
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ program wannier
else ! restart a previous calculation
if(on_root) call param_read_chkpt()
call param_chkpt_dist
if (lsitesymmetry) call sitesym_read() ! update this to read on root and bcast - JRY

select case (restart)
case ('default') ! continue from where last checkpoint was written
Expand Down
8 changes: 4 additions & 4 deletions src/wannierise.F90
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ subroutine wann_main
do nn = 1, nntot
m_matrix_1b_loc=m_matrix_loc(:,:,nn,:)
call comms_gatherv(m_matrix_1b_loc,num_wann*num_wann*counts(my_node_id),&
m_matrix,num_wann*num_wann*counts,num_wann*num_wann*displs)
m_matrix_1b,num_wann*num_wann*counts,num_wann*num_wann*displs)
call comms_bcast(m_matrix_1b(1,1,1),num_wann*num_wann*num_kpts)
m_matrix(:,:,nn,:)=m_matrix_1b(:,:,:)
end do!nn
Expand Down Expand Up @@ -2514,11 +2514,11 @@ subroutine wann_main_gamma
if (ierr/=0) call io_error('Error in allocating cz in wann_main_gamma')

cz=cmplx_0

! Set up the MPI arrays for a serial run.

allocate( counts(0:0), displs(0:0), stat=ierr )
if (ierr/=0) call io_error('Error in allocating counts and displs in wann_main_gamma')
counts(0)=0; displs(0)=0
counts(0)=0;displs(0)=0

! store original U before rotating
!~ ! phase factor ph_g is applied to u_matrix
!~ ! NB: ph_g is applied to u_matrix_opt if (have_disentangled)
Expand Down

0 comments on commit 8ee66da

Please sign in to comment.