From f0f926d4f58da17b42fb5e7938b9856075e32520 Mon Sep 17 00:00:00 2001 From: Yong Hoon Lee Date: Tue, 6 Aug 2024 21:22:45 -0600 Subject: [PATCH] Bug fix: sql filename suffix to be sql instead of sql_0 if MPI with 1 core --- weis/glue_code/runWEIS.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weis/glue_code/runWEIS.py b/weis/glue_code/runWEIS.py index 637243202..b8436c6fa 100644 --- a/weis/glue_code/runWEIS.py +++ b/weis/glue_code/runWEIS.py @@ -219,7 +219,7 @@ def run_weis(fname_wt_input, fname_modeling_options, fname_opt_options, geometry SKIP_SMT = False sm_filename = os.path.join(folder_output, os.path.splitext(opt_options['recorder']['file_name'])[0] + '.smt') sql_filename = os.path.join(folder_output, opt_options['recorder']['file_name']) - if MPI: + if MPI and max_cores>1: sql_filename += '_{:}'.format(rank) if opt_options['opt_flag'] and opt_options['driver']['design_of_experiments']['flag']: # if DOE enabled # Skip DOE Driver if SQL file exists