mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 22:25:48 -04:00
Make more examples Python 3 compatible
This commit is contained in:
parent
bb3fb8f0f0
commit
87c3f19104
12 changed files with 74 additions and 59 deletions
|
|
@ -23,6 +23,7 @@ set int:acc_std 1e-25
|
|||
print none
|
||||
|
||||
python noprint
|
||||
from __future__ import print_function
|
||||
from mathutil import *
|
||||
|
||||
# It should only be necessary to modify these three lines for
|
||||
|
|
@ -62,12 +63,12 @@ python noprint
|
|||
return task_energy(theory)
|
||||
|
||||
def printexp(z):
|
||||
print "\n Exponents:"
|
||||
print("\n Exponents:")
|
||||
for i in range(len(z)):
|
||||
print " %14.8f" % (z[i]*z[i]),
|
||||
if ((i+1)%5) == 0:
|
||||
print ""
|
||||
print " "
|
||||
print("")
|
||||
print(" ")
|
||||
|
||||
z = array('d',exponents)
|
||||
for i in range(len(z)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue