Skip to content

Commit

Permalink
Merge pull request #270 from normarivano/fix_issue_260
Browse files Browse the repository at this point in the history
Fix segmentation fault with `write_xyz`
  • Loading branch information
jryates authored Jul 17, 2019
2 parents 357556c + 8f0382c commit 6f61f72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wannierise.F90
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ subroutine wann_main
end if
endif

if (write_xyz) call wann_write_xyz()
if (write_xyz .and. on_root) call wann_write_xyz()

if (write_hr_diag) then
call hamiltonian_setup()
Expand Down Expand Up @@ -725,7 +725,7 @@ subroutine wann_main
if (have_disentangled .and. write_proj) call wann_calc_projection()

! aam: write data required for vdW utility
if (write_vdw_data) call wann_write_vdw_data()
if (write_vdw_data .and. on_root) call wann_write_vdw_data()

! deallocate sub vars not passed into other subs
deallocate (rwork, stat=ierr)
Expand Down Expand Up @@ -3008,7 +3008,7 @@ subroutine wann_main_gamma
' Omega Total = ', wann_spread%om_tot*lenconfac**2
write (stdout, '(1x,a78)') repeat('-', 78)

if (write_xyz) call wann_write_xyz()
if (write_xyz .and. on_root) call wann_write_xyz()

if (guiding_centres) call wann_phases(csheet, sheet, rguide, irguide)

Expand Down

0 comments on commit 6f61f72

Please sign in to comment.