Skip to content

Commit d384ba1

Browse files
authored
Merge pull request #19 from sourceryinstitute/rm-conditionals
Remove unnecessary macros & refactor directory structure
2 parents 891eefa + 6e2a648 commit d384ba1

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

src/assert_m.F90 renamed to src/assert/assert_subroutine_m.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
! "Multi-Dimensional Physics Implementation into Fuel Analysis under Steady-state and Transients (FAST)",
55
! contract # NRC-HQ-60-17-C-0007
66
!
7-
module assert_m
7+
module assert_subroutine_m
88
!! summary: Utility for runtime checking of logical assertions.
99
!! usage: error-terminate if the assertion fails:
1010
!!
@@ -44,4 +44,4 @@ pure module subroutine assert(assertion, description, diagnostic_data)
4444

4545
end interface
4646

47-
end module
47+
end module assert_subroutine_m

src/assert_s.f90 renamed to src/assert/assert_subroutine_s.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
! "Multi-Dimensional Physics Implementation into Fuel Analysis under Steady-state and Transients (FAST)",
55
! contract # NRC-HQ-60-17-C-0007
66
!
7-
submodule(assert_m) assert_s
7+
submodule(assert_subroutine_m) assert_subroutine_s
88
implicit none
99

1010
contains
@@ -84,4 +84,4 @@ end function string
8484

8585
end procedure
8686

87-
end submodule
87+
end submodule assert_subroutine_s
File renamed without changes.

src/intrinsic_array_m.F90 renamed to src/assert/intrinsic_array_m.f90

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ module intrinsic_array_m
3535

3636
pure module function construct(array) result(intrinsic_array)
3737
implicit none
38-
#ifndef NAGFOR
3938
class(*), intent(in) :: array(..)
40-
#else
41-
class(*), intent(in) :: array(:)
42-
#endif
4339
type(intrinsic_array_t) intrinsic_array
4440
end function
4541

src/intrinsic_array_s.F90 renamed to src/assert/intrinsic_array_s.f90

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55

66
module procedure construct
77

8-
#ifndef NAGFOR
98
select rank(array)
109
rank(1)
11-
#endif
1210
select type(array)
1311
type is(complex)
1412
allocate(intrinsic_array%complex_1D, source = array)
@@ -23,7 +21,6 @@
2321
class default
2422
error stop "intrinsic_array_t construct: unsupported rank-2 type"
2523
end select
26-
#ifndef NAGFOR
2724
rank(2)
2825
select type(array)
2926
type is(complex)
@@ -59,7 +56,6 @@
5956
rank default
6057
error stop "intrinsic_array_t construct: unsupported rank"
6158
end select
62-
#endif
6359

6460
end procedure
6561

src/assert_m.f90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module assert_m
2+
use intrinsic_array_m
3+
use assert_subroutine_m
4+
use characterizable_m
5+
implicit none
6+
end module assert_m

0 commit comments

Comments
 (0)