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
852 class(BndType),
pointer :: packobj
853 class(BndType),
pointer :: packobj2
859 call flw_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
861 packobj%ictMemPath =
''
863 call chd_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
865 packobj%ictMemPath = create_mem_path(this%name,
'DFW')
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)
871 call zdg_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
872 pakname, mempath, this%dis, this%cxs, this%dfw%unitconv)
874 call pcp_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
875 pakname, mempath, this%dis, this%dfw, this%cxs)
877 call evp_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
878 pakname, mempath, this%dis, this%dfw, this%cxs)
880 write (errmsg, *)
'Invalid package type: ', filtyp
881 call store_error(errmsg)
882 call store_error_filename(this%filename)
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.)
895 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