Skip to content

Commit

Permalink
Merge pull request wannier-developers#402 from jimustafa/trim-trailin…
Browse files Browse the repository at this point in the history
…g-semicolons

trim trailing semicolons
  • Loading branch information
jryates authored May 27, 2022
2 parents 29de077 + d2c7f28 commit d141f9f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/postw90/berry.F90
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ subroutine berry_main(pw90_berry, dis_manifold, fermi_energy_list, kmesh_info, k
num_valence_bands, effective_model, have_disentangled, seedname, stdout, &
timer, error, comm)
if (allocated(error)) return
kdotp_nbands = size(pw90_berry%kdotp_bands);
kdotp_nbands = size(pw90_berry%kdotp_bands)
allocate (kdotp(kdotp_nbands, kdotp_nbands, 3, 3, 3))
kdotp = cmplx_0
endif
Expand Down Expand Up @@ -1874,7 +1874,7 @@ subroutine berry_get_imfgh_klist(dis_manifold, fermi_energy_list, kpt_latt, ws_r
call utility_zgemm_new(tmp(:, :, 1), f_list(:, :, ife), tmp(:, :, 4))
call utility_zgemm_new(tmp(:, :, 4), AA(:, :, beta_A(i)), tmp(:, :, 5))

s = 2.0_dp*utility_im_tr_prod(f_list(:, :, ife), tmp(:, :, 5));
s = 2.0_dp*utility_im_tr_prod(f_list(:, :, ife), tmp(:, :, 5))
img_k_list(1, i, ife) = utility_re_tr_prod(f_list(:, :, ife), tmp(:, :, 2)) - s
imh_k_list(1, i, ife) = utility_re_tr_prod(f_list(:, :, ife), tmp(:, :, 3)) + s

Expand Down
2 changes: 1 addition & 1 deletion src/postw90/kpath.F90
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ subroutine k_path(pw90_berry, dis_manifold, fermi_energy_list, kmesh_info, pw90_
if (allocated(error)) return

! Partition set of k-points into junks
! call comms_array_split(total_pts, counts, displs);
! call comms_array_split(total_pts, counts, displs)
call comms_array_split(total_pts, counts, displs, comm)
!kpt_lo = displs(my_node_id)+1
!kpt_hi = displs(my_node_id)+counts(my_node_id)
Expand Down
2 changes: 1 addition & 1 deletion src/postw90/kslice.F90
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ subroutine k_slice(pw90_berry, dis_manifold, fermi_energy_list, kmesh_info, kpt_
nkpts = (pw90_kslice%kmesh2d(1) + 1)*(pw90_kslice%kmesh2d(2) + 1)

! Partition set of k-points into junks
call comms_array_split(nkpts, counts, displs, comm);
call comms_array_split(nkpts, counts, displs, comm)
my_nkpts = counts(my_node_id)

allocate (my_coords(2, my_nkpts))
Expand Down
4 changes: 2 additions & 2 deletions src/postw90/spin.F90
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ subroutine spin_get_moment(dis_manifold, fermi_energy_list, kpoint_dist, kpt_lat

integer :: my_node_id, num_nodes

my_node_id = mpirank(comm);
num_nodes = mpisize(comm);
my_node_id = mpirank(comm)
num_nodes = mpisize(comm)
fermi_n = 0
if (allocated(fermi_energy_list)) fermi_n = size(fermi_energy_list)
if (fermi_n > 1) then
Expand Down
4 changes: 2 additions & 2 deletions src/wannier_lib.F90
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,8 @@ subroutine wannier_run(seed__name, mp_grid_loc, num_kpts_loc, real_lattice_loc,
my_node_id = 0
#endif

allocate (counts(0:num_nodes - 1));
allocate (displs(0:num_nodes - 1));
allocate (counts(0:num_nodes - 1))
allocate (displs(0:num_nodes - 1))
time0 = io_time()

seedname = trim(adjustl(seed__name))
Expand Down
4 changes: 3 additions & 1 deletion src/wannierise.F90
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,9 @@ subroutine wann_main(atom_data, dis_manifold, exclude_bands, ham_logical, kmesh_
endif

cwschur1 = cmplx_0; cwschur2 = cmplx_0; cwschur3 = cmplx_0; cwschur4 = cmplx_0
cdq = cmplx_0; cz = cmplx_0; cmtmp = cmplx_0; cdqkeep_loc = cmplx_0; cdq_loc = cmplx_0;
cdq = cmplx_0; cz = cmplx_0; cmtmp = cmplx_0; cdqkeep_loc = cmplx_0; cdq_loc = cmplx_0
! buff=cmplx_0

gcnorm1 = 0.0_dp; gcnorm0 = 0.0_dp

! initialise rguide to projection centres (Cartesians in units of Ang)
Expand Down

0 comments on commit d141f9f

Please sign in to comment.