Skip to content

Commit 3d45edd

Browse files
committed
Simple GPAW input that produces cProfile output
1 parent 6066097 commit 3d45edd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

demos/performance/gpaw/c6h6.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from ase.build import molecule
2+
from gpaw import GPAW
3+
import cProfile
4+
5+
atoms = molecule('C6H6')
6+
atoms.center(3.5)
7+
8+
calc = GPAW(h=0.2, xc='PBE', txt='benzene.txt')
9+
10+
atoms.set_calculator(calc)
11+
cProfile.run("atoms.get_potential_energy()", "gpaw.prof")
12+

0 commit comments

Comments
 (0)