Skip to content

Commit a4d622a

Browse files
committed
Bugfix: It may happen that the temporary config file is accessed at once
by multiple SU2 runs, leading to io conflicts. Thus, the name of the temporary file should not be hard-coded. This bugfix simply adds a '_tmp' to the original config file name.
1 parent 4f85841 commit a4d622a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SU2_PY/SU2/io/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ def read_config(filename):
829829
def write_config(filename,param_dict):
830830
""" updates an existing config file """
831831

832-
temp_filename = "temp.cfg"
832+
temp_filename = filename+"_tmp"
833833
shutil.copy(filename,temp_filename)
834834
output_file = open(filename,"w")
835835

0 commit comments

Comments
 (0)