Skip to content

Commit 8777474

Browse files
committed
Merge branches 'neok/rework-slice' and 'fix-issue-#506'
- Fixes #506 - :octocat: merge 2 branches at once w/ octopuss merge strategy
2 parents b0cd56a + d12156d commit 8777474

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,8 +657,8 @@ if(opencoarrays_aware_compiler)
657657
add_caf_test(comp_allocated_2 2 comp_allocated_2)
658658
add_caf_test(alloc_comp_get_convert_nums 2 alloc_comp_get_convert_nums)
659659
if(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 8)
660-
add_caf_test(team_number 2 ${tests_root}/unit/teams/team_number)
661-
add_caf_test(get_communicator 3 ${tests_root}/unit/teams/get_communicator)
660+
add_caf_test(team_number 2 team_number)
661+
add_caf_test(get_communicator 3 get_communicator)
662662
endif()
663663
endif()
664664

src/tests/unit/teams/CMakeLists.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
1-
add_executable(team_number team-number.f90)
2-
target_link_libraries(team_number OpenCoarrays)
3-
#TODO: Remove when gfortran supports team_number()
4-
target_include_directories(team_number PRIVATE ${CMAKE_BINARY_DIR}/include)
5-
6-
#add_executable(get_communicator get-communicator.f90)
7-
#target_link_libraries(get_communicator OpenCoarrays)
8-
#TODO: Remove when gfortran supports team_number()
9-
#target_include_directories(get_communicator PRIVATE ${CMAKE_BINARY_DIR}/include)
1+
caf_compile_executable(team_number team-number.f90)
2+
caf_compile_executable(get_communicator get-communicator.f90)

src/tests/unit/teams/get-communicator.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! BSD 3-Clause License
22
!
3-
! Copyright (c) 2016, Sourcery Institute
3+
! Copyright (c) 2018, Sourcery Institute
44
! All rights reserved.
55
!
66
! Redistribution and use in source and binary forms, with or without
@@ -83,6 +83,7 @@ pure function destination_team(image,numTeams) result(team)
8383
end function
8484

8585
subroutine mpi_matches_caf(comm)
86+
use mpi
8687
use iso_c_binding, only : c_int
8788
integer(c_int), intent(in) :: comm
8889
!! MPI communicator

src/tests/unit/teams/team-number.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! BSD 3-Clause License
22
!
3-
! Copyright (c) 2016, Sourcery Institute
3+
! Copyright (c) 2018, Sourcery Institute
44
! All rights reserved.
55
!
66
! Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)