From cbfb82f398923bc4adab4cf866b3b18fb26ad359 Mon Sep 17 00:00:00 2001 From: Damian Rouson Date: Sat, 3 Jun 2023 17:25:25 -0700 Subject: [PATCH 1/2] refac(test_s report): tighten variable scope --- src/sourcery/test_s.f90 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/sourcery/test_s.f90 b/src/sourcery/test_s.f90 index d3c858c9..57591a66 100644 --- a/src/sourcery/test_s.f90 +++ b/src/sourcery/test_s.f90 @@ -5,7 +5,6 @@ contains module procedure report - integer i associate(me => this_image()) if (me==1) print *, new_line('a'), test%subject() @@ -13,9 +12,12 @@ associate(num_tests => size(test_results)) tests = tests + num_tests if (me==1) then - do i=1,num_tests - if (me==1) print *," ",test_results(i)%characterize() - end do + block + integer i + do i=1,num_tests + if (me==1) print *," ",test_results(i)%characterize() + end do + end block end if block logical, allocatable :: passing_tests(:) From 3a813680b8be7138abfe3bc99551995506817598 Mon Sep 17 00:00:00 2001 From: Damian Rouson Date: Fri, 14 Jul 2023 18:18:21 -0700 Subject: [PATCH 2/2] fix(sourcery_m):order use/implicit none statements --- src/sourcery_m.f90 | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/sourcery_m.f90 b/src/sourcery_m.f90 index 9255439c..d176acf2 100644 --- a/src/sourcery_m.f90 +++ b/src/sourcery_m.f90 @@ -1,18 +1,20 @@ module sourcery_m !! export all public entities from every other sourcery module - implicit none + use command_line_m, only : command_line_t + use data_partition_m, only : data_partition_t + use formats_m, only : formats_t + use file_m, only : file_t + use string_m, only : string_t + use test_result_m, only : test_result_t + use test_m, only : test_t + use user_defined_collectives_m, only : co_all - use command_line_m - use string_m - use file_m - use test_result_m - use formats_m - use oracle_m - use object_m - use user_defined_collectives_m - use data_partition_m - use test_m + !! legacy modules (likely to be removed in a future release): + use object_m, only : object_t + use co_object_m, only : co_object_t + use oracle_m, only : oracle_t use units_m - use co_object_m + + implicit none end module sourcery_m