-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request #3 from Mike-Fuchs/main"
- Loading branch information
Showing
28 changed files
with
174 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
program main | ||
|
||
use time_module | ||
use hydrograph_module | ||
use maximum_data_module | ||
use calibration_data_module | ||
|
||
implicit none | ||
|
||
integer :: date_time(8) ! | | ||
character*10 b(3) ! | | ||
|
||
prog = " SWAT+ @TODAY@ MODULAR Rev @YEAR@.@SWAT_VERSION@" | ||
|
||
write (*,1000) | ||
open (9003,file='simulation.out') | ||
write (9003,1000) | ||
1000 format(1x," SWAT+ ",/, & | ||
& " Revision @SWAT_VERSION@ ",/, & | ||
& " Soil & Water Assessment Tool ",/, & | ||
& "@CMAKE_Fortran_COMPILER_ID@ (@CMAKE_Fortran_COMPILER_VERSION@), @ISO@, @CMAKE_HOST_SYSTEM_NAME@",/, & | ||
& " Program reading . . . executing",/) | ||
|
||
open (888,file="erosion.txt",recl = 1500) | ||
|
||
!!!! for Luis only | ||
! open (7777,file='res1_out.txt',recl=1500) | ||
! write (7777,7778) | ||
!7778 format (9x,'DAY',8x,'YEAR',10x,'RES',7x,'VOL m^3',4x,'INFLO m^3',5x,'OUTFLO m^3',5x,'PREC m^3',7x,'EVAP m^3', & | ||
! 8x,'AREA ha') | ||
!!!! for Luis only | ||
|
||
call proc_bsn | ||
call proc_date_time | ||
call proc_db | ||
call proc_read | ||
|
||
call hyd_connect | ||
call exco_db_read | ||
call dr_db_read | ||
|
||
call cli_lapse | ||
call object_read_output | ||
|
||
call om_water_init | ||
call pest_cha_res_read | ||
call path_cha_res_read | ||
call salt_cha_read !rtb salt | ||
call cs_cha_read !rtb cs | ||
|
||
call lsu_read_elements !defining landscape units by hru | ||
|
||
call proc_hru | ||
call proc_cha | ||
call proc_aqu | ||
|
||
!! read decision table data for conditional management | ||
call dtbl_lum_read | ||
|
||
call hru_lte_read | ||
|
||
call proc_cond | ||
|
||
call res_read_weir !moved from proc_res Jaehak 2023 | ||
call dtbl_res_read | ||
call dtbl_scen_read | ||
! input scenarios used in simulation | ||
call cal_cond_read | ||
|
||
! read manure allocation inputs | ||
call manure_allocation_read | ||
|
||
call dtbl_flocon_read | ||
|
||
! read water treatment and water allocation files - before hru lum tables | ||
call treat_read_om | ||
call water_allocation_read | ||
|
||
call hru_dtbl_actions_init | ||
|
||
! read reservoir and wetland data | ||
call proc_res | ||
call wet_read_hyd | ||
call wet_read | ||
call wet_read_salt_cs | ||
if (db_mx%wet_dat > 0) call wet_all_initial | ||
if (bsn_cc%i_fpwet == 2) call wet_fp_init | ||
|
||
call proc_cal | ||
|
||
call proc_open | ||
|
||
! compute unit hydrograph parameters for subdaily runoff | ||
call unit_hyd_ru_hru | ||
|
||
call dr_ru | ||
|
||
call hyd_connect_out | ||
|
||
! save initial time settings for soft calibration runs | ||
time_init = time | ||
|
||
!! simulate watershed processes | ||
if (time%step < 0) then | ||
!! export coefficient - average annual | ||
time%end_sim = 1 | ||
call command | ||
else | ||
call time_control | ||
end if | ||
|
||
if (cal_soft == "y") call calsoft_control | ||
|
||
if (cal_hard == "y") then | ||
deallocate (cal_upd) | ||
call cal_parmchg_read | ||
call calhard_control | ||
end if | ||
|
||
!! write output for SWIFT input | ||
if (bsn_cc%swift_out == 1) call swift_output | ||
|
||
!! write successful completion to screen and file | ||
write (*,1001) | ||
write (9003,1001) | ||
open (107,file="success.fin") | ||
|
||
call DATE_AND_TIME (b(1), b(2), b(3), date_time) | ||
write (*,1234) date_time(2), date_time(3), date_time(1), date_time(5), date_time(6), date_time(7) | ||
write (9003,1234) date_time(2), date_time(3), date_time(1), date_time(5), date_time(6), date_time(7) | ||
1234 format(/," Date of Sim", 2x,i2,"/",i2,"/",i4, " Time",2x,i2,":",i2,":",i2) | ||
|
||
write (107,1001) | ||
1001 format (/," Execution successfully completed ") | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module salt_aquifer_module | ||
module salt_aquifer | ||
|
||
implicit none | ||
|
||
|
Oops, something went wrong.