Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Adjusted the write_param method to remove incompatible input file names
  • Loading branch information
daminton committed Nov 2, 2022
1 parent fcb86c1 commit 2ab8dbb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/swiftest/swiftest/simulation_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ab8dbb

Please sign in to comment.