diff --git a/python/swiftest/swiftest/simulation_class.py b/python/swiftest/swiftest/simulation_class.py index 2ff9c8454..804eee651 100644 --- a/python/swiftest/swiftest/simulation_class.py +++ b/python/swiftest/swiftest/simulation_class.py @@ -1441,13 +1441,19 @@ def ascii_file_input_error_msg(codename): if "IN_FORM" in self.param: init_cond_format = self.param['IN_FORM'] else: - init_cond_format = "EL" + if self.codename.title() == "Swiftest": + init_cond_format = "EL" + else: + init_cond_format = "XV" if init_cond_file_type is None: if "IN_TYPE" in self.param: init_cond_file_type = self.param['IN_TYPE'] else: - init_cond_file_type = "NETCDF_DOUBLE" + if self.codename.title() == "Swiftest": + init_cond_file_type = "NETCDF_DOUBLE" + else: + init_cond_file_type = "ASCII" if self.codename.title() == "Swiftest": init_cond_keys = ["CB", "PL", "TP"] @@ -1664,10 +1670,11 @@ def set_output_files(self, else: self.param['BIN_OUT'] = output_file_name - if output_format != "XV" and self.codename != "Swiftest": - warnings.warn(f"{output_format} is not compatible with {self.codename}. Setting to XV",stacklevel=2) - output_format = "XV" - self.param["OUT_FORM"] = output_format + if output_format is not None: + if output_format != "XV" and self.codename != "Swiftest": + warnings.warn(f"{output_format} is not compatible with {self.codename}. Setting to XV",stacklevel=2) + output_format = "XV" + self.param["OUT_FORM"] = output_format if self.restart: self.param["OUT_STAT"] = "APPEND"