Skip to content

Commit

Permalink
test ALL incar tags in tests/vasp/flows/test_mp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Oct 14, 2023
1 parent 1b176d1 commit a9deeef
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LORBIT = 11
LCHARG = False
LREAL = Auto
LWAVE = False
MAGMOM = 2*-0.0
MAGMOM = 2*0.6
NELM = 100
NSW = 99
PREC = Accurate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ LASPH = True
LORBIT = 11
LREAL = Auto
LWAVE = False
LCHARG = False
MAGMOM = 2*-0.0
NELM = 100
NSW = 99
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ LASPH = True
LORBIT = 11
LREAL = False
LWAVE = False
LCHARG = True
MAGMOM = 2*0.0
NELM = 100
NSW = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ KSPACING = 0.22
LAECHG = True
LASPH = True
LCHARG = True
LELF = True
LELF = False
LMIXTAU = True
LORBIT = 11
LREAL = Auto
LVTOT = True
LWAVE = True
MAGMOM = 2*0.0
MAGMOM = 2*0.6
NELM = 200
NSW = 99
PREC = Accurate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ KSPACING = 0.29539340980039036
LAECHG = True
LASPH = True
LCHARG = True
LELF = True
LELF = False
LMIXTAU = True
LORBIT = 11
LREAL = False
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ALGO = All
EDIFF = 1e-05
EDIFFG = -0.05
EDIFFG = -0.02
ENAUG = 1360.0
ENCUT = 680.0
IBRION = 2
Expand All @@ -11,7 +11,7 @@ KSPACING = 0.28253269576667883
LAECHG = True
LASPH = True
LCHARG = True
LELF = True
LELF = False
LMIXTAU = True
LORBIT = 11
LREAL = Auto
Expand Down
17 changes: 3 additions & 14 deletions tests/vasp/flows/test_mp.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,7 @@ def test_mp_meta_gga_double_relax_static(mock_vasp, clean_dir, vasp_test_dir):
}
si_struct = Structure.from_file(f"{vasp_test_dir}/{pre_relax_dir}/inputs/POSCAR")

# settings passed to fake_run_vasp; adjust these to check for certain INCAR settings
fake_run_vasp_kwargs = {
key: {"incar_settings": ["LWAVE", "LCHARG"]} for key in ref_paths
}

mock_vasp(ref_paths, fake_run_vasp_kwargs)
mock_vasp(ref_paths)

# generate flow
flow = MPMetaGGADoubleRelaxStaticMaker(
Expand Down Expand Up @@ -102,10 +97,7 @@ def test_mp_gga_double_relax_static(mock_vasp, clean_dir, vasp_test_dir):
}
si_struct = Structure.from_file(f"{vasp_test_dir}/{pre_relax_dir}/inputs/POSCAR")

# settings passed to fake_run_vasp; adjust these to check for certain INCAR settings
fake_run_vasp_kwargs = {key: {"incar_settings": []} for key in ref_paths}

mock_vasp(ref_paths, fake_run_vasp_kwargs)
mock_vasp(ref_paths)

# generate flow
flow = MPGGADoubleRelaxStaticMaker().make(si_struct)
Expand Down Expand Up @@ -133,10 +125,7 @@ def test_mp_gga_double_relax(mock_vasp, clean_dir, vasp_test_dir):
}
si_struct = Structure.from_file(f"{vasp_test_dir}/{pre_relax_dir}/inputs/POSCAR")

# settings passed to fake_run_vasp; adjust these to check for certain INCAR settings
fake_run_vasp_kwargs = {key: {"incar_settings": []} for key in ref_paths}

mock_vasp(ref_paths, fake_run_vasp_kwargs)
mock_vasp(ref_paths)

# generate flow
flow = MPGGADoubleRelaxMaker().make(si_struct)
Expand Down

0 comments on commit a9deeef

Please sign in to comment.