Skip to content

Commit

Permalink
Safety checkin, no idea what I was doing
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Goldhaber committed Oct 16, 2023
1 parent bcd40e0 commit 49ef90b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/suite_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1747,15 +1747,18 @@ def find_variable(self, standard_name=None, source_var=None,
# end if
# Loop all the schemes and find this variable's intent (if any)
# XXgoldyXX: v debug only
print(f"XXGg: {standard_name}: {self.phase_type}")
print(f"XXGg: ({self.name}) {standard_name}: {self.phase_type}")
# XXgoldyXX: ^ debug only
for scheme in self.schemes():
# XXgoldyXX: v debug only
print(f"XXGs: {scheme.name}")
print(f"XXGs: {scheme:name}: {scheme.subroutine_name}")
# XXgoldyXX: ^ debug only
for svar in scheme.variable_list():
if svar.get_prop_value('standard_name') == standard_name:
sintent = svar.get_prop_value('intent')
# XXgoldyXX: v debug only
print(f"XXGsf: {svar.get_prop_value('standard_name')}, {sintent}")
# XXgoldyXX: ^ debug only
if sintent == 'in':
intent_in = 'in'
elif sintent == 'out':
Expand All @@ -1770,7 +1773,7 @@ def find_variable(self, standard_name=None, source_var=None,
break
# XXgoldyXX: v debug only
else:
print(f"XXGsn: {svar.get_prop_value('standard_name')}")
print(f"XXGsn: {svar.get_prop_value('standard_name')}, {standard_name}")
# XXgoldyXX: ^ debug only
# end if
# end for
Expand Down
3 changes: 3 additions & 0 deletions test/advection_test/test_host.F90
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ logical function check_list(test_list, chk_list, list_desc, suite_name)
trim(suite_name)
end if
write(errmsg(len_trim(errmsg)+1:), '(a,i0)') ', should be ', num_items
!!XXgoldyXX: v debug only
write(6, '(15(/,a))') (trim(test_list(lindex)), lindex=1,size(test_list))
!!XXgoldyXX: ^ debug only
write(6, *) trim(errmsg)
errmsg = ''
check_list = .false.
Expand Down

0 comments on commit 49ef90b

Please sign in to comment.