Skip to content

Commit

Permalink
Merge pull request #295 from juerghutter/CURRENT
Browse files Browse the repository at this point in the history
xTB: remove exessive memory allocation
  • Loading branch information
juerghutter committed Apr 10, 2019
1 parent b83bb4e commit fa9f1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xtb_matrices.F
Expand Up @@ -1015,7 +1015,7 @@ SUBROUTINE build_xtb_ks_matrix(qs_env, calculate_forces, just_energy)
ALLOCATE (mcharge(natom), charges(natom, 5)) ALLOCATE (mcharge(natom), charges(natom, 5))
charges = 0.0_dp charges = 0.0_dp
nkind = SIZE(atomic_kind_set) nkind = SIZE(atomic_kind_set)
CALL get_qs_kind_set(qs_kind_set, nsgf=nsgf) CALL get_qs_kind_set(qs_kind_set, maxsgf=nsgf)
ALLOCATE (aocg(nsgf, natom)) ALLOCATE (aocg(nsgf, natom))
aocg = 0.0_dp aocg = 0.0_dp
IF (nimg > 1) THEN IF (nimg > 1) THEN
Expand Down

0 comments on commit fa9f1a6

Please sign in to comment.