Skip to content

Commit

Permalink
Merge pull request #766 from MichaelWolloch/bugfix_ScanOptimizeFW
Browse files Browse the repository at this point in the history
Fixed bug in ScanOptimizeFW PBEsol step
  • Loading branch information
Zhuoying authored May 19, 2023
2 parents 842641d + 88cd45c commit 43298db
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 14 deletions.
9 changes: 7 additions & 2 deletions atomate/vasp/fireworks/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,16 @@ def __init__(
WriteVaspFromIOSet(structure=structure, vasp_input_set=vasp_input_set)
)
# Update the INCAR for the PBESol GGA preconditioning step
pre_opt_settings = {"_set": {"GGA": "Ps", "METAGGA": None, "EDIFFG": -0.05}}
metagga_type = vasp_input_set.incar.get("METAGGA",
vasp_input_set_params.get("METAGGA", "R2scan"))
pre_opt_settings = {"_set": {"GGA": "Ps", "EDIFFG": -0.05},
"_unset": {"METAGGA": metagga_type}}

# Disable vdW for the precondition step
if vasp_input_set_params.get("vdw"):
pre_opt_settings.update({"_unset": {"LUSE_VDW": True, "BPARAM": 15.7}})
pre_opt_settings.update({"_unset": {"LUSE_VDW": True,
"BPARAM": 15.7,
"METAGGA": metagga_type}})

t.append(ModifyIncar(incar_dictmod=pre_opt_settings))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ LREAL = Auto
LVTOT = True
LWAVE = False
MAGMOM = 1*0.0
METAGGA = None
NELM = 200
NSW = 99
PREC = Accurate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ LREAL = Auto
LVTOT = True
LWAVE = False
MAGMOM = 2*0.0
METAGGA = None
NELM = 200
NSW = 99
PREC = Accurate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ LREAL = Auto
LVTOT = True
LWAVE = False
MAGMOM = 2*0.0
METAGGA = None
NELM = 200
NSW = 99
PREC = Accurate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ LREAL = Auto
LVTOT = True
LWAVE = False
MAGMOM = 2*-0.0
METAGGA = None
NELM = 200
NSW = 99
PREC = Accurate
Expand Down
8 changes: 0 additions & 8 deletions atomate/vasp/workflows/tests/test_vasp_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,6 @@ def test_SCAN_no_bandgap(self):
self.assertEqual(incar[p], 0.22)
elif p == "ICHARG" or p == "ISTART":
self.assertEqual(incar[p], 1)
elif p == "METAGGA":
self.assertEqual(incar[p], "None")
elif p == "GGA":
self.assertEqual(incar[p], "Ps")
elif p == "EDIFFG":
Expand Down Expand Up @@ -644,8 +642,6 @@ def test_SCAN_small_bandgap(self):
self.assertEqual(incar[p], 0.22)
elif p == "ICHARG" or p == "ISTART":
self.assertEqual(incar[p], 1)
elif p == "METAGGA":
self.assertEqual(incar[p], "None")
elif p == "GGA":
self.assertEqual(incar[p], "Ps")
elif p == "EDIFFG":
Expand Down Expand Up @@ -703,8 +699,6 @@ def test_SCAN_large_bandgap(self):
self.assertEqual(incar[p], 0.22)
elif p == "ICHARG" or p == "ISTART":
self.assertEqual(incar[p], 1)
elif p == "METAGGA":
self.assertEqual(incar[p], "None")
elif p == "GGA":
self.assertEqual(incar[p], "Ps")
elif p == "EDIFFG":
Expand Down Expand Up @@ -780,8 +774,6 @@ def test_SCAN_with_vdw(self):
self.assertEqual(incar[p], 0.22)
elif p == "ICHARG":
self.assertEqual(incar[p], 1)
elif p == "METAGGA":
self.assertEqual(incar[p], "None")
elif p == "GGA":
self.assertEqual(incar[p], "Ps")
elif p == "EDIFFG":
Expand Down

0 comments on commit 43298db

Please sign in to comment.