Skip to content

Commit

Permalink
fix attempt to sort list
Browse files Browse the repository at this point in the history
  • Loading branch information
Courtney Peverley committed Nov 7, 2023
1 parent a722da8 commit 935fb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ccpp_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ def write_req_vars_sub(self, ofile, errmsg_name, errcode_name):
ofile.write("\nsubroutine {}({})".format(API.__vars_fname, inargs), 1)
# Declare use statements for suite varlist routines
mlen = max([len(x.module) for x in self.suites])
for suite in sorted(self.suites):
for suite in self.suites:
mod = f"{suite.module}{' '*(mlen - len(suite.module))}"
ofile.write(f"use {mod}, only: {suite.req_vars_subname()}", 2)
# end for
Expand Down

0 comments on commit 935fb72

Please sign in to comment.