Skip to content

Commit

Permalink
future proof
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Butler committed Sep 4, 2017
1 parent 72fcb8e commit e24e335
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions macrodensity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,15 +574,12 @@ def read_vasp_density(FILE):
k = 0
Potential = numpy.zeros(shape=(NGX*NGY*NGZ))
# Read in the potential data
if i > num_atoms + 9 and i < num_atoms + 10 + NGX*NGY*NGZ/5:
Potential[k] = inp[0]
Potential[k+1] = inp[1]
Potential[k+2] = inp[2]
Potential[k+3] = inp[3]
Potential[k+4] = inp[4]
k = k + 5
if math.fmod(k,100000) == 0:
print("Reading potential at point", k)
if i > num_atoms + 9 and i < num_atoms + 10 + NGX*NGY*NGZ/5:
for l in range(len(inp)):
Potential[k+l] = inp[l]
k = k + 5
if math.fmod(k,100000) == 0:
print("Reading potential at point", k)

print("BBBB OOOO OOOO MMMMM ")
print("BBBB OOOO OOOO MMMMM ")
Expand All @@ -592,7 +589,7 @@ def read_vasp_density(FILE):
print("B B O O O O MMMMM ")
print("B B O O O O MMMMM ")
print("B B O O O O MMMMM ")
print("BBBB O O O O M M M ")
print("BBBB O O O O M M M ")
print("BBBB O O O O M M M ")
print("BBBB O O O O M M M ")
print("B B O O O O M M M ")
Expand Down

0 comments on commit e24e335

Please sign in to comment.