MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
SerialRouter.f90
Go to the documentation of this file.
3 use kindmodule, only: i4b
5 implicit none
6 private
7
9
10 !> @brief Serial router: currently doesn't do anything
11 !<
12 type, public, extends(routerbasetype) :: serialroutertype
13 contains
14 procedure :: initialize => sr_initialize
15 procedure :: route_all => sr_route_all
16 procedure :: route_sln => sr_route_sln
17 procedure :: finalize => sr_finalize
18 procedure :: destroy => sr_destroy
19 end type serialroutertype
20
21contains
22
23 !> Factory method to create serial router
24 !<
25 function create_serial_router() result(router)
26 class(routerbasetype), pointer :: router
27 ! local
28 class(serialroutertype), pointer :: serial_router
29
30 allocate (serial_router)
31 router => serial_router
32
33 end function create_serial_router
34
35 subroutine sr_initialize(this)
36 class(serialroutertype) :: this
37 end subroutine sr_initialize
38
39 subroutine sr_route_all(this, stage)
40 class(serialroutertype) :: this
41 integer(I4B) :: stage
42
43 end subroutine sr_route_all
44
45 subroutine sr_route_sln(this, virtual_sol, stage)
46 class(serialroutertype) :: this
47 type(virtualsolutiontype) :: virtual_sol
48 integer(I4B) :: stage
49
50 end subroutine sr_route_sln
51
52 subroutine sr_finalize(this)
53 class(serialroutertype) :: this
54 end subroutine sr_finalize
55
56 subroutine sr_destroy(this)
57 class(serialroutertype) :: this
58 end subroutine sr_destroy
59
60end module serialroutermodule
This module defines variable data types.
Definition kind.f90:8
subroutine sr_route_sln(this, virtual_sol, stage)
subroutine sr_route_all(this, stage)
subroutine sr_initialize(this)
class(routerbasetype) function, pointer, public create_serial_router()
Factory method to create serial router.
subroutine sr_destroy(this)
subroutine sr_finalize(this)
Serial router: currently doesn't do anything.
This bundles all virtual data for a particular solution.