You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/prepare_utils.f90
+25-11Lines changed: 25 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,9 @@ subroutine allocate_array()
49
49
50
50
! Local variable
51
51
integer:: kmax_max
52
+
integer(kind=8) :: bytes
53
+
real(8) :: gigabytes
54
+
character(len=256) :: msg
52
55
53
56
allocate(saved%offset(3, nmax%atoms_per_residue))
54
57
allocate(saved%com(3))
@@ -58,39 +61,50 @@ subroutine allocate_array()
58
61
allocate(ewald%Ak(1:ewald%param%nkvec))
59
62
allocate(ewald%Ak_old(1:ewald%param%nkvec))
60
63
allocate(ewald%form_factor(ewald%param%nkvec)) ! Note, there is no need for such as large vector
61
-
ewald%kweights = zero
62
-
ewald%Ak = zero
63
-
ewald%Ak_old = zero
64
-
ewald%form_factor = zero
65
64
66
65
! Allocate complex arrays for wave vector components
67
66
kmax_max =maxval(ewald%param%kmax)
68
67
allocate(ewald%phase%factor(3, res%number, 0:NB_MAX_MOLECULE, 1:nmax%atoms_per_residue, -kmax_max:kmax_max)) ! TOFIX, do not use NB_MAX_MOLECULE systematical ?
0 commit comments