erosion_output.f90 Source File


This file depends on

sourcefile~~erosion_output.f90~~EfferentGraph sourcefile~erosion_output.f90 erosion_output.f90 sourcefile~erosion_module.f90 erosion_module.f90 sourcefile~erosion_output.f90->sourcefile~erosion_module.f90 sourcefile~hydrograph_module.f90 hydrograph_module.f90 sourcefile~erosion_output.f90->sourcefile~hydrograph_module.f90 sourcefile~basin_module.f90 basin_module.f90 sourcefile~hydrograph_module.f90->sourcefile~basin_module.f90 sourcefile~time_module.f90 time_module.f90 sourcefile~hydrograph_module.f90->sourcefile~time_module.f90

Source Code

      subroutine erosion_output
      
      use erosion_module
      use hydrograph_module, only : sp_ob
      
      implicit none
      
      integer :: j = 0 !none      |counter
      real :: nevents = 0.

      do j = 1, sp_ob%hru
        !! divide by number of events to get event average
        nevents = float(ero_output(j)%n_events)
        ero_output(j)%ero_ave = ero_output(j)%ero_ave / nevents

        !! print average per event
        write (4444,*) j, ero_output(j)%n_events, ero_output(j)%ero_ave
      end do
      
      return
       
      end subroutine erosion_output