From 961368e0bb27797b8a609ec7d5ec12d7d66ac008 Mon Sep 17 00:00:00 2001 From: ManasBagul23 Date: Wed, 16 Sep 2026 22:09:19 +0530 Subject: [PATCH] Stop adding BUFFET_MONITORING to configs written by SU2_PY BUFFET_MONITORING was removed from CConfig, and the buffet sensor is now always evaluated for viscous problems. read_config still set it to YES whenever BUFFET was an objective or constraint, and dump_config writes every key, so SU2_CFD aborted on the generated config with "BUFFET_MONITORING: invalid option name". --- SU2_PY/SU2/io/config.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/SU2_PY/SU2/io/config.py b/SU2_PY/SU2/io/config.py index b4d1507f39a5..09944c9a2edc 100755 --- a/SU2_PY/SU2/io/config.py +++ b/SU2_PY/SU2/io/config.py @@ -716,17 +716,6 @@ def read_config(filename): #: for line - if "OPT_CONSTRAINT" in data_dict: - if ( - "BUFFET" in data_dict["OPT_CONSTRAINT"]["EQUALITY"] - or "BUFFET" in data_dict["OPT_CONSTRAINT"]["INEQUALITY"] - ): - data_dict["BUFFET_MONITORING"] = "YES" - - if "OPT_OBJECTIVE" in data_dict: - if "BUFFET" in data_dict["OPT_OBJECTIVE"]: - data_dict["BUFFET_MONITORING"] = "YES" - # hack - twl if "DV_VALUE_NEW" not in data_dict: data_dict["DV_VALUE_NEW"] = data_dict.get("DV_VALUE", [0])