File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1258,10 +1258,11 @@ def __init__(
1258
1258
super ().__init__ (structure , MatPESStaticSet .CONFIG , ** kwargs )
1259
1259
1260
1260
if xc_functional .upper () == "R2SCAN" :
1261
- self .user_incar_settings ["METAGGA" ] = "R2SCAN"
1262
- self .user_incar_settings ["ALGO" ] = "ALL"
1261
+ self ._config_dict ["INCAR" ]["METAGGA" ] = "R2SCAN"
1262
+ self ._config_dict ["INCAR" ]["ALGO" ] = "ALL"
1263
+ del self ._config_dict ["INCAR" ]["GGA" ]
1263
1264
elif xc_functional .upper () == "PBE+U" :
1264
- self .user_incar_settings ["LDAU" ] = True
1265
+ self ._config_dict [ "INCAR" ] ["LDAU" ] = True
1265
1266
elif xc_functional .upper () != "PBE" :
1266
1267
raise ValueError (
1267
1268
f"{ xc_functional } is not supported."
Original file line number Diff line number Diff line change @@ -816,6 +816,7 @@ def test_r2scan(self):
816
816
scan = MatPESStaticSet (self .struct , xc_functional = "R2SCAN" )
817
817
incar_scan = scan .incar
818
818
assert incar_scan ["METAGGA" ] == "R2scan"
819
+ assert incar_scan .get ("GGA" ) is None
819
820
assert incar_scan ["ALGO" ] == "All"
820
821
assert incar_scan .get ("LDAU" ) is None
821
822
# test POTCAR files are default PBE_54 PSPs and functional
You can’t perform that action at this time.
0 commit comments