command Subroutine

subroutine command()

Uses

~ ~ ~ PURPOSE ~ ~ ~ for every day of simulation, this subroutine steps through the command lines in the watershed configuration (.fig) file. Depending on the command code on the .fig file line, a command loop is accessed ~ ~ ~ SUBROUTINES/FUNCTIONS CALLED ~ ~ ~ SWAT: subbasin, route, routres, transfer, recmon SWAT: recepic, save, recday, recyear

~ ~ ~ ~ ~ ~ END SPECIFICATIONS ~ ~ ~ ~ ~ ~

hru and ru can have hyrdographs that lag into next day assume only one day is saved for all other objects if incoming object is not an hru or ru, send total hyd to surface runoff multiply inflow hyd by the fraction of incoming add flow hydrographs for each incoming object artificial channel - length=0 - no transformations output channel morphology compute flashiness index write object output for entire simulation print all output files print water allocation output print manure allocation output carbon output for testing ***jga

write carbon in soil, plant, and residue at end of the day write carbon in soil, plant, and residue at end the month
write carbon in soil, plant, and residue at end of year
write carbon in soil, plant, and residue at end the simulation

Arguments

None

Calls

proc~~command~~CallsGraph proc~command command 1000 1000 proc~command->1000 aqu_1d_control aqu_1d_control proc~command->aqu_1d_control aqu_cs_output aqu_cs_output proc~command->aqu_cs_output aqu_pesticide_output aqu_pesticide_output proc~command->aqu_pesticide_output aqu_salt_output aqu_salt_output proc~command->aqu_salt_output aquifer_output aquifer_output proc~command->aquifer_output basin_aqu_pest_output basin_aqu_pest_output proc~command->basin_aqu_pest_output basin_aquifer_output basin_aquifer_output proc~command->basin_aquifer_output basin_ch_pest_output basin_ch_pest_output proc~command->basin_ch_pest_output basin_chanbud_output basin_chanbud_output proc~command->basin_chanbud_output basin_chanmorph_output basin_chanmorph_output proc~command->basin_chanmorph_output basin_channel_output basin_channel_output proc~command->basin_channel_output basin_ls_pest_output basin_ls_pest_output proc~command->basin_ls_pest_output basin_output basin_output proc~command->basin_output basin_recall_output basin_recall_output proc~command->basin_recall_output basin_res_pest_output basin_res_pest_output proc~command->basin_res_pest_output basin_reservoir_output basin_reservoir_output proc~command->basin_reservoir_output basin_sdchannel_output basin_sdchannel_output proc~command->basin_sdchannel_output ch_cs_output ch_cs_output proc~command->ch_cs_output ch_salt_output ch_salt_output proc~command->ch_salt_output cha_pesticide_output cha_pesticide_output proc~command->cha_pesticide_output channel_output channel_output proc~command->channel_output constit_hyd_mult constit_hyd_mult proc~command->constit_hyd_mult cs_balance cs_balance proc~command->cs_balance cs_str_output cs_str_output proc~command->cs_str_output flow_dur_curve flow_dur_curve proc~command->flow_dur_curve gwflow_simulate gwflow_simulate proc~command->gwflow_simulate hru_carbon_output hru_carbon_output proc~command->hru_carbon_output hru_control hru_control proc~command->hru_control hru_cs_output hru_cs_output proc~command->hru_cs_output hru_lte_control hru_lte_control proc~command->hru_lte_control hru_lte_output hru_lte_output proc~command->hru_lte_output hru_output hru_output proc~command->hru_output hru_pathogen_output hru_pathogen_output proc~command->hru_pathogen_output hru_pesticide_output hru_pesticide_output proc~command->hru_pesticide_output hru_salt_output hru_salt_output proc~command->hru_salt_output hyddep_output hyddep_output proc~command->hyddep_output hydin_output hydin_output proc~command->hydin_output hydout_output hydout_output proc~command->hydout_output lsu_output lsu_output proc~command->lsu_output manure_demand_output manure_demand_output proc~command->manure_demand_output manure_source_output manure_source_output proc~command->manure_source_output obj_output obj_output proc~command->obj_output recall_cs recall_cs proc~command->recall_cs recall_nut recall_nut proc~command->recall_nut recall_output recall_output proc~command->recall_output recall_salt recall_salt proc~command->recall_salt res_control res_control proc~command->res_control res_cs_output res_cs_output proc~command->res_cs_output res_pesticide_output res_pesticide_output proc~command->res_pesticide_output res_salt_output res_salt_output proc~command->res_salt_output reservoir_output reservoir_output proc~command->reservoir_output ru_control ru_control proc~command->ru_control ru_cs_output ru_cs_output proc~command->ru_cs_output ru_output ru_output proc~command->ru_output ru_salt_output ru_salt_output proc~command->ru_salt_output salt_balance salt_balance proc~command->salt_balance sd_chanbud_output sd_chanbud_output proc~command->sd_chanbud_output sd_chanmorph_output sd_chanmorph_output proc~command->sd_chanmorph_output sd_channel_control3 sd_channel_control3 proc~command->sd_channel_control3 sd_channel_output sd_channel_output proc~command->sd_channel_output soil_nutcarb_write soil_nutcarb_write proc~command->soil_nutcarb_write water_allocation_output water_allocation_output proc~command->water_allocation_output wet_cs_output wet_cs_output proc~command->wet_cs_output wet_salt_output wet_salt_output proc~command->wet_salt_output wetland_output wetland_output proc~command->wetland_output