Skip to content

Commit

Permalink
Merge pull request #120 from sharc-md/sharc3preview
Browse files Browse the repository at this point in the history
ADF_input.py: fixed integer division
  • Loading branch information
maisebastian authored May 22, 2024
2 parents 3c94fae + b08ab1c commit 3141f68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/ADF_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import readline
import time


# some constants
DEBUG = False
CM_TO_HARTREE = 1./219474.6 #4.556335252e-6 # conversion factor from cm-1 to Hartree
Expand Down Expand Up @@ -98,7 +97,7 @@ def centerstring(string,n,pad=' '):
if l>=n:
return string
else:
return pad*((n-l+1)/2)+string+pad*((n-l)/2)
return pad*((n-l+1)//2)+string+pad*((n-l)//2)

def displaywelcome():
string='\n'
Expand Down

0 comments on commit 3141f68

Please sign in to comment.