Skip to content

Commit

Permalink
gpaw fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarB83 committed Oct 26, 2024
1 parent 8ae51ed commit c1e7b40
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ash/interfaces/interface_GPAW.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,17 @@ def __init__(self, printsetting=False, printlevel=2, numcores=1, label="gpaw", f
if gridpoints is None:
print("No gridpoints provided. Example: gridpoints=(24,24,24) Exiting")
ashexit()
if basis is None:
print("No basis provided. Exiting")
if mode == "lcao" and basis is None:
print("Mode is LCAO but no basis provided. Exiting")
ashexit()
if mode is None:
print("No mode provided. Example: mode=\"fd\" or mode=\"PW(200)\" or mode=\"lcao\" Exiting")
ashexit()

#Setting basis to None if not lcao
if mode != "lcao":
self.basis=None

self.functional=functional
self.nbands=nbands
self.gridpoints=gridpoints
Expand Down

0 comments on commit c1e7b40

Please sign in to comment.