MODFLOW 6  version 6.5.0.dev2
MODFLOW 6 Code Documentation
AsciiInputLoadType.f90
Go to the documentation of this file.
1 !> @brief This module contains the AsciiInputLoadTypeModule
2 !!
3 !! This module defines an abstract type that support generic
4 !! IDP dynamic input loading for traditional MODFLOW 6 ascii
5 !! files.
6 !!
7 !<
9 
10  use kindmodule, only: dp, i4b, lgp
14 
15  implicit none
16  private
18 
19  !> @brief base abstract type for ascii source dynamic load
20  !!
21  !<
22  type, abstract, extends(dynamicpkgloadtype) :: asciidynamicpkgloadbasetype
23  contains
24  procedure(load_init_if), deferred :: ainit !< source loader init
25  procedure(period_load_if), deferred :: rp !< source loader read and prepare
27 
28  abstract interface
29  subroutine period_load_if(this, parser)
31  class(asciidynamicpkgloadbasetype), intent(inout) :: this
32  type(blockparsertype), pointer, intent(inout) :: parser !< block parser
33  end subroutine
34  subroutine load_init_if(this, mf6_input, component_name, &
35  component_input_name, input_name, &
36  iperblock, parser, iout)
38  class(asciidynamicpkgloadbasetype), intent(inout) :: this
39  type(modflowinputtype), intent(in) :: mf6_input !< description of input
40  character(len=*), intent(in) :: component_name !< component name
41  character(len=*), intent(in) :: component_input_name !< component input name, e.g. model name file
42  character(len=*), intent(in) :: input_name !< input name, e.g. package *.chd file
43  integer(I4B), intent(in) :: iperblock !< index of period block on block definition list
44  type(blockparsertype), pointer, intent(inout) :: parser !< block parser
45  integer(I4B), intent(in) :: iout
46  end subroutine
47  end interface
48 
49 end module asciiinputloadtypemodule
This module contains the AsciiInputLoadTypeModule.
This module contains block parser methods.
Definition: BlockParser.f90:7
This module contains the InputLoadTypeModule.
This module defines variable data types.
Definition: kind.f90:8
This module contains the ModflowInputModule.
Definition: ModflowInput.f90:9
base abstract type for ascii source dynamic load
derived type for storing input definition for a file