-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlink_bc.f90
executable file
·65 lines (52 loc) · 1.43 KB
/
link_bc.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
!***************************************************************
! Copyright (c) 2017 Battelle Memorial Institute
! Licensed under modified BSD License. A copy of this license can be
! found in the LICENSE file in the top level directory of this
! distribution.
!***************************************************************
!
! NAME: link_bc
!
! VERSION and DATE: MASS1 v0.81 10/8/97
!
! PURPOSE: reads a files for a table of link BCs. Upstream inflows
! downstream stage,...
! also read hydro project BC file
!
! RETURNS:
!
! REQUIRED:
!
! LOCAL VARIABLES:
!
! COMMENTS:
!
!
! MOD HISTORY: added checks for linktype=21; mcr 11/14/98
!
!
!***************************************************************
!
SUBROUTINE link_bc
USE utility
USE bctable
USE general_vars, ONLY: maxlinks
USE link_vars, ONLY: linktype
USE file_vars, ONLY: filename
USE date_vars, ONLY: time_option
IMPLICIT NONE
INTEGER :: link
SELECT CASE(time_option)
CASE(1) ! time units are sec,hours,minutes, or days in file
CALL error_message("Time option not supported in link_bc", .TRUE.)
CASE(2) ! date/time format is used mm:dd:yyyy hh:mm:ss converted to decimal julian day
linkbc => bc_table_read(filename(5), 1)
DO link=1,maxlinks
SELECT CASE(linktype(link))
CASE(6,21)
hydrobc => bc_table_read(filename(10), 2)
EXIT
END SELECT
END DO
END SELECT
END SUBROUTINE link_bc