835
842
843 class(SwfModelType) :: this
844 character(len=*), intent(in) :: filtyp
845 integer(I4B), intent(in) :: ipakid
846 integer(I4B), intent(in) :: ipaknum
847 character(len=*), intent(in) :: pakname
848 character(len=*), intent(in) :: mempath
849 integer(I4B), intent(in) :: inunit
850 integer(I4B), intent(in) :: iout
851
852 class(BndType), pointer :: packobj
853 class(BndType), pointer :: packobj2
854 integer(I4B) :: ip
855
856
857 select case (filtyp)
858 case ('FLW6')
859 call flw_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
860 pakname, mempath)
861 packobj%ictMemPath = ''
862 case ('CHD6')
863 call chd_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
864 pakname, mempath)
865 packobj%ictMemPath = create_mem_path(this%name, 'DFW')
866 case ('CDB6')
867 call cdb_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
868 pakname, mempath, this%dis, this%cxs, &
869 this%dfw%lengthconv, this%dfw%timeconv)
870 case ('ZDG6')
871 call zdg_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
872 pakname, mempath, this%dis, this%cxs, this%dfw%unitconv)
873 case ('PCP6')
874 call pcp_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
875 pakname, mempath, this%dis, this%dfw, this%cxs)
876 case ('EVP6')
877 call evp_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
878 pakname, mempath, this%dis, this%dfw, this%cxs)
879 case default
880 write (errmsg, *) 'Invalid package type: ', filtyp
881 call store_error(errmsg)
882 call store_error_filename(this%filename)
883 end select
884
885
886
887 do ip = 1, this%bndlist%Count()
888 packobj2 => getbndfromlist(this%bndlist, ip)
889 if (packobj2%packName == pakname) then
890 write (errmsg, '(a,a)') 'Cannot create package. Package name '// &
891 'already exists: ', trim(pakname)
892 call store_error(errmsg, terminate=.true.)
893 end if
894 end do
895 call addbndtolist(this%bndlist, packobj)
896
subroutine, public chd_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath)
Create a new constant head package.
This module contains the CDB package methods.
subroutine, public cdb_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, dis, cxs, lengthconv, timeconv)
Create a new package object.
This module contains the evaporation (EVP) package methods.
subroutine, public evp_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, dis, dfw, cxs)
Create a Evaporation Package.
This module contains the FLW package methods.
subroutine, public flw_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath)
Create a new package object.
This module contains the precipitation (PCP) package methods.
subroutine, public pcp_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, dis, dfw, cxs)
Create a Precipitation Package.
This module contains the ZDG package methods.
subroutine, public zdg_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, dis, cxs, unitconv)
Create a new package object.