forked from adrienhaxaire/fortun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfortun_find_sources.f90
39 lines (25 loc) · 1.01 KB
/
fortun_find_sources.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module fortun_find_sources
implicit none
private
public :: find_sources
contains
!-------------------------------------------------------------- find_procedures
!> supposing sources are in the default directory.
!! if not, must be specified via the option -s, or --source
!!
!! open the test find and find calls to source procedures
!
subroutine find_sources(directory, source_files)
use fortun_utils, only : CHAR_LENGTH, check_allocation
implicit none
integer, parameter :: io = 11
character(5), parameter :: test_prefix="test_"
integer, parameter :: LS_COLUMNS = 8, UNUSED_COLUMNS = 6
character(len=*), intent(IN) :: directory
character(len=*), dimension(:), allocatable, intent(INOUT) :: source_files
integer :: error
allocate(source_files(1), stat=error)
call check_allocation(error, "'source_files' in find_sources")
source_files(1) = trim(directory) // "/example/myadd.f90"
end subroutine find_sources
end module fortun_find_sources