Skip to content

Commit 3dcd390

Browse files
authored
Merge pull request #2672 from aryab08/fix-dv-value-replacement-2005
Fix DV_VALUE replacement bug in config.py (issue #2005)
2 parents e109712 + 355fb31 commit 3dcd390

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SU2_PY/SU2/io/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,9 +729,9 @@ def read_config(filename):
729729

730730
# hack - twl
731731
if "DV_VALUE_NEW" not in data_dict:
732-
data_dict["DV_VALUE_NEW"] = [0]
732+
data_dict["DV_VALUE_NEW"] = data_dict.get("DV_VALUE", [0])
733733
if "DV_VALUE_OLD" not in data_dict:
734-
data_dict["DV_VALUE_OLD"] = [0]
734+
data_dict["DV_VALUE_OLD"] = data_dict.get("DV_VALUE", [0])
735735
if "OPT_ITERATIONS" not in data_dict:
736736
data_dict["OPT_ITERATIONS"] = 100
737737
if "OPT_ACCURACY" not in data_dict:

0 commit comments

Comments
 (0)