842 class(SwfModelType) :: this
843 character(len=*),
intent(in) :: filtyp
844 integer(I4B),
intent(in) :: ipakid
845 integer(I4B),
intent(in) :: ipaknum
846 character(len=*),
intent(in) :: pakname
847 character(len=*),
intent(in) :: mempath
848 integer(I4B),
intent(in) :: inunit
849 integer(I4B),
intent(in) :: iout
851 class(BndType),
pointer :: packobj
852 class(BndType),
pointer :: packobj2
858 call flw_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
860 packobj%ictMemPath =
''
862 call chd_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
864 packobj%ictMemPath = create_mem_path(this%name,
'DFW')
866 call cdb_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
867 pakname, mempath, this%dis, this%cxs, &
868 this%dfw%lengthconv, this%dfw%timeconv)
870 call zdg_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
871 pakname, mempath, this%dis, this%cxs, this%dfw%unitconv)
873 call pcp_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
874 pakname, mempath, this%dis, this%dfw, this%cxs)
876 call evp_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
877 pakname, mempath, this%dis, this%dfw, this%cxs)
879 write (errmsg, *)
'Invalid package type: ', filtyp
880 call store_error(errmsg)
881 call store_error_filename(this%filename)
886 do ip = 1, this%bndlist%Count()
887 packobj2 => getbndfromlist(this%bndlist, ip)
888 if (packobj2%packName == pakname)
then
889 write (errmsg,
'(a,a)')
'Cannot create package. Package name '// &
890 'already exists: ', trim(pakname)
891 call store_error(errmsg, terminate=.true.)
894 call addbndtolist(this%bndlist, packobj)
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)
@ brief 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)
@ brief 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)
@ brief Create a new package object