From c2b05c5332eab42689e479b73a7216f1d18d333d Mon Sep 17 00:00:00 2001 From: peverwhee Date: Wed, 6 Nov 2024 16:44:36 -0700 Subject: [PATCH] fix errflg variable name --- scripts/host_cap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/host_cap.py b/scripts/host_cap.py index 2c772d4b..3a05864e 100644 --- a/scripts/host_cap.py +++ b/scripts/host_cap.py @@ -696,7 +696,7 @@ def write_host_cap(host_model, api, module_name, output_dir, run_env): call_str = suite_part_call_list(host_model, const_dict, spart, False, dyn_const=True) cap.write(f"call {suite.name}_{stage}({call_str})", 3) - cap.write("if (errflg /= 0) then", 3) + cap.write(f"if ({errflg_name} /= 0) then", 3) cap.write("return", 4) cap.write("end if", 3) # Allocate the suite's dynamic constituents array