Skip to content

Commit

Permalink
fix errflg variable name in cap (#609)
Browse files Browse the repository at this point in the history
Fixes bug introduced by me in #608. Use variable errflg name instead of
"errflg" explicitly
  • Loading branch information
peverwhee authored Nov 7, 2024
1 parent ce381cf commit d3b494f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/host_cap.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,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
Expand Down

0 comments on commit d3b494f

Please sign in to comment.