-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader_aquifer.f90
78 lines (72 loc) · 2.97 KB
/
header_aquifer.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
66
67
68
69
70
71
72
73
74
75
76
77
78
subroutine header_aquifer
use aquifer_module
use basin_module
use hydrograph_module, only : sp_ob, ob
implicit none
!!! AQUIFER
if (sp_ob%aqu > 0) then
if (pco%aqu%d == "y") then
open (2520,file="aquifer_day.txt",recl = 1500)
write (2520,*) bsn%name, prog
write (2520,*) aqu_hdr !! aquifer
write (2520,*) aqu_hdr_units
write (9000,*) "AQUIFER aquifer_day.txt"
if (pco%csvout == "y") then
open (2524,file="aquifer_day.csv",recl = 1500)
write (2524,*) bsn%name, prog
write (2524,'(*(G0.3,:,","))') aqu_hdr !! aquifer csv
write (2524,'(*(G0.3,:,","))') aqu_hdr_units
write (9000,*) "AQUIFER aquifer_day.csv"
end if
endif
endif
if (sp_ob%aqu > 0) then
if (pco%aqu%m == "y") then
open (2521,file="aquifer_mon.txt",recl = 1500)
write (2521,*) bsn%name, prog
write (2521,*) aqu_hdr !! aquifer
write (2521,*) aqu_hdr_units
write (9000,*) "AQUIFER aquifer_mon.txt"
if (pco%csvout == "y") then
open (2525,file="aquifer_mon.csv",recl = 1500)
write (2525,*) bsn%name, prog
write (2525,'(*(G0.3,:,","))') aqu_hdr !! aquifer csv
write (2525,'(*(G0.3,:,","))') aqu_hdr_units
write (9000,*) "AQUIFER aquifer_mon.csv"
end if
end if
end if
if (sp_ob%aqu > 0) then
if (pco%aqu%y == "y") then
open (2522,file="aquifer_yr.txt",recl = 1500)
write (2522,*) bsn%name, prog
write (2522,*) aqu_hdr !! aquifer
write (2522,*) aqu_hdr_units
write (9000,*) "AQUIFER aquifer_yr.txt"
if (pco%csvout == "y") then
open (2526,file="aquifer_yr.csv",recl = 1500)
write (2526,*) bsn%name, prog
write (2526,'(*(G0.3,:,","))') aqu_hdr !! aquifer csv
write (2526,'(*(G0.3,:,","))') aqu_hdr_units
write (9000,*) "AQUIFER aquifer_yr.csv"
end if
endif
endif
if (sp_ob%aqu > 0) then
if (pco%aqu%a == "y") then
open (2523,file="aquifer_aa.txt",recl = 1500)
write (2523,*) bsn%name, prog
write (2523,*) aqu_hdr !! aquifer
write (2523,*) aqu_hdr_units
write (9000,*) "AQUIFER aquifer_aa.txt"
if (pco%csvout == "y") then
open (2527,file="aquifer_aa.csv",recl = 1500)
write (2527,*) bsn%name, prog
write (2527,'(*(G0.3,:,","))') aqu_hdr !! aquifer csv
write (2527,'(*(G0.3,:,","))') aqu_hdr_units
write (9000,*) "AQUIFER aquifer_aa.csv"
end if
end if
end if
return
end subroutine header_aquifer