Skip to content

Commit

Permalink
remove redundant sorts
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Mar 26, 2024
1 parent faa69e2 commit 650e7e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/driver/parse_castro_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def write_headers_and_source(params, out_directory, struct_name):
# find all the namespaces
namespaces = sorted({q.namespace for q in params})

for nm in sorted(namespaces):
for nm in namespaces:

params_nm = [q for q in params if q.namespace == nm]
# sort by repr since None may be present
Expand Down Expand Up @@ -227,7 +227,7 @@ def write_headers_and_source(params, out_directory, struct_name):
pf.write(f"#include <{nm}_params.H>\n")
pf.write("\n")

for nm in sorted(namespaces):
for nm in namespaces:
params_nm = [q for q in params if q.namespace == nm]
# sort by repr since None may be present
ifdefs = sorted({q.ifdef for q in params_nm}, key=repr)
Expand Down Expand Up @@ -261,7 +261,7 @@ def write_headers_and_source(params, out_directory, struct_name):

sf.write("#include <castro_limits.H>\n\n")

for nm in sorted(namespaces):
for nm in namespaces:

params_nm = [q for q in params if q.namespace == nm]
# sort by repr since None may be present
Expand Down

0 comments on commit 650e7e2

Please sign in to comment.