Skip to content

Commit

Permalink
Change from no_run_phase to has_run_phase
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinswales committed Mar 13, 2024
1 parent c75542f commit fd2e60b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/ccpp_datafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ def _new_scheme_entry(parent, scheme, group_name, scheme_headers):
raise CCPPDatatableError(emsg.format(sch_name, pname))
# end if
# Special case: Scheme w/o run phase.
if scheme._no_run_phase:
if not scheme._has_run_phase:
return
else:
phase_entry = ET.SubElement(sch_entry, sch_tag)
Expand Down
6 changes: 3 additions & 3 deletions scripts/suite_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ def __init__(self, scheme_xml, context, parent, run_env):
self.__var_debug_checks = list()
self.__forward_transforms = list()
self.__reverse_transforms = list()
self._no_run_phase = False
self._has_run_phase = True
self.__optional_vars = list()
super().__init__(name, context, parent, run_env, active_call_list=True)

Expand Down Expand Up @@ -1145,7 +1145,7 @@ def analyze(self, phase, group, scheme_library, suite_vars, level):
my_header = func[phase]
self.__subroutine_name = my_header.title
else:
self._no_run_phase = True
self._has_run_phase = False
return set()
# end if
else:
Expand Down Expand Up @@ -1731,7 +1731,7 @@ def write(self, outfile, errcode, errmsg, indent):
#
# Write the scheme call.
#
if not self._no_run_phase:
if self._has_run_phase:
stmt = 'call {}({})'
outfile.write('',indent+1)
outfile.write('! Call scheme', indent+1)
Expand Down

0 comments on commit fd2e60b

Please sign in to comment.