Skip to content

Commit 491dcd4

Browse files
authored
Merge pull request #45 from sourceryinstitute/minor-fixes
Minor updates: dogfooding in unit tests, rm compiler workaround, & fix sourcery_m public interface
2 parents 3b97f4f + 761c2fe commit 491dcd4

10 files changed

+8
-23
lines changed

src/sourcery/formats_m.F90 renamed to src/sourcery/formats_m.f90

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ module formats_m
99

1010
pure module function separated_values(separator, mold) result(format_string)
1111
character(len=*), intent(in) :: separator
12-
#ifndef NAGFOR
1312
class(*), intent(in) :: mold(..)
14-
#else
15-
class(*), intent(in) :: mold(:)
16-
#endif
1713
character(len=:), allocatable :: format_string
1814
end function
1915

src/sourcery/formats_s.F90 renamed to src/sourcery/formats_s.f90

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
character(len=*), parameter :: suffix = "'))"
1010
character(len=*), parameter :: complex_prefix = "(*('(',G0,',',G0,')',:,'"
1111

12-
#ifndef NAGFOR
1312
select rank(mold)
1413
rank(1)
15-
#endif
1614
select type(mold)
1715
type is(complex)
1816
format_string = complex_prefix // separator // suffix
@@ -25,11 +23,9 @@
2523
class default
2624
error stop "format_s separated_values: unsupported type"
2725
end select
28-
#ifndef NAGFOR
2926
rank default
3027
error stop "formats_s separated_values: unsupported rank"
3128
end select
32-
#endif
3329
end procedure
3430

3531
end submodule formats_s

src/sourcery_m.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module sourcery_m
22
!! export all public entities from every other sourcery module
33
use command_line_m, only : command_line_t
44
use data_partition_m, only : data_partition_t
5-
use formats_m, only : formats_t
5+
use formats_m, only : csv, cscv, separated_values
66
use file_m, only : file_t
77
use string_m, only : string_t
88
use test_result_m, only : test_result_t
@@ -11,7 +11,7 @@ module sourcery_m
1111

1212
!! legacy modules (likely to be removed in a future release):
1313
use object_m, only : object_t
14-
use co_object_m, only : co_object_t
14+
use co_object_m, only : co_object
1515
use oracle_m, only : oracle_t
1616
use units_m
1717

test/command_line_test.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module command_line_test
22
!! Verify object pattern asbtract parent
3-
use test_m, only : test_t, test_result_t
4-
use command_line_m, only : command_line_t
3+
use sourcery_m, only : test_t, test_result_t, command_line_t
54
implicit none
65

76
private

test/data_partition_test.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module data_partition_test
22
!! verify data partitioning across images and data gathering
3-
use data_partition_m, only : data_partition_t
4-
use test_m, only : test_t, test_result_t
3+
use sourcery_m, only : data_partition_t, test_t, test_result_t
54
use iso_fortran_env, only : real64
65
implicit none
76

test/formats_test.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module formats_test
22
!! Verify that format strings provide the desired formatting
3-
use formats_m, only : separated_values
4-
use test_m, only : test_t, test_result_t
3+
use sourcery_m, only : separated_values, test_t, test_result_t
54
implicit none
65

76
private

test/object_m_test.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module object_m_test
22
!! Verify object pattern asbtract parent
3-
use test_m, only : test_t, test_result_t
4-
use object_m, only : object_t
3+
use sourcery_m, only : test_t, test_result_t, object_t
54
implicit none
65

76
private

test/string_test.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module string_test
2-
use test_m, only : test_t, test_result_t
3-
use string_m, only : string_t
2+
use sourcery_m, only : test_t, test_result_t, string_t
43
implicit none
54

65
private

test/test_result_test.f90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module test_result_test
22
!! Verify object pattern asbtract parent
33
use test_m, only : test_t, test_result_t
4-
use test_result_m, only : test_result_t
54
implicit none
65

76
private

test/user_defined_collectives_test.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module user_defined_collectives_test
2-
use user_defined_collectives_m, only : co_all
3-
use test_m, only : test_t, test_result_t
2+
use sourcery_m, only : co_all, test_t, test_result_t
43
implicit none
54

65
private

0 commit comments

Comments
 (0)