Skip to content

Commit

Permalink
Simple GPAW input that produces cProfile output
Browse files Browse the repository at this point in the history
  • Loading branch information
jussienko committed Jan 27, 2020
1 parent 6066097 commit 3d45edd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions demos/performance/gpaw/c6h6.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from ase.build import molecule
from gpaw import GPAW
import cProfile

atoms = molecule('C6H6')
atoms.center(3.5)

calc = GPAW(h=0.2, xc='PBE', txt='benzene.txt')

atoms.set_calculator(calc)
cProfile.run("atoms.get_potential_energy()", "gpaw.prof")

0 comments on commit 3d45edd

Please sign in to comment.