diff --git a/python/swiftest/swiftest/simulation_class.py b/python/swiftest/swiftest/simulation_class.py index cc4229a23..153e92225 100644 --- a/python/swiftest/swiftest/simulation_class.py +++ b/python/swiftest/swiftest/simulation_class.py @@ -191,6 +191,12 @@ def write_param(self, param_file, param=None): # Check to see if the parameter type matches the output type. If not, we need to convert codename = param['! VERSION'].split()[0] if codename == "Swifter" or codename == "Swiftest": + if param['IN_TYPE'] == "ASCII": + param.pop("NC_IN", None) + else: + param.pop("CB_IN",None) + param.pop("PL_IN",None) + param.pop("TP_IN",None) io.write_labeled_param(param, param_file) elif codename == "Swift": io.write_swift_param(param, param_file)