Call the package create routines for packages activated by the user.
748
758
759 class(GwtModelType) :: this
760 character(len=*), intent(in) :: filtyp
761 character(len=LINELENGTH) :: errmsg
762 integer(I4B), intent(in) :: ipakid
763 integer(I4B), intent(in) :: ipaknum
764 character(len=*), intent(in) :: pakname
765 character(len=*), intent(in) :: mempath
766 integer(I4B), intent(in) :: inunit
767 integer(I4B), intent(in) :: iout
768
769 class(BndType), pointer :: packobj
770 class(BndType), pointer :: packobj2
771 integer(I4B) :: ip
772
773
774 select case (filtyp)
775 case ('CNC6')
776 call cnc_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
777 pakname, dvt, mempath)
778 case ('SRC6')
779 call src_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
780 this%depvartype, pakname, mempath, this%fmi)
781 case ('LKT6')
782 call lkt_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
783 pakname, mempath, this%fmi, this%eqnsclfac, &
784 this%depvartype, this%depvarunit, this%depvarunitabbrev)
785 case ('SFT6')
786 call sft_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
787 pakname, mempath, this%fmi, this%eqnsclfac, &
788 this%depvartype, this%depvarunit, this%depvarunitabbrev)
789 case ('MWT6')
790 call mwt_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
791 pakname, mempath, this%fmi, this%eqnsclfac, &
792 this%depvartype, this%depvarunit, this%depvarunitabbrev)
793 case ('UZT6')
794 call uzt_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
795 pakname, mempath, this%fmi, this%eqnsclfac, &
796 this%depvartype, this%depvarunit, this%depvarunitabbrev)
797 case ('IST6')
798 call ist_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
799 pakname, mempath, this%fmi, this%mst)
800 case ('API6')
801 call api_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
802 pakname, mempath)
803 case default
804 write (errmsg, *) 'Invalid package type: ', filtyp
806 end select
807
808
809
810
811 do ip = 1, this%bndlist%Count()
812 packobj2 => getbndfromlist(this%bndlist, ip)
813 if (packobj2%packName == pakname) then
814 write (errmsg, '(a,a)') 'Cannot create package. Package name '// &
815 'already exists: ', trim(pakname)
817 end if
818 end do
819 call addbndtolist(this%bndlist, packobj)
This module contains the API package methods.
subroutine, public api_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath)
Create a new package object.
subroutine, public cnc_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, depvartype, mempath)
Create a new constant concentration or temperature package.
subroutine, public ist_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, fmi, mst)
Create a new package object.
subroutine, public lkt_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, fmi, eqnsclfac, dvt, dvu, dvua)
Create a new lkt package.
subroutine, public mwt_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, fmi, eqnsclfac, dvt, dvu, dvua)
Create new MWT package.
subroutine, public sft_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, fmi, eqnsclfac, dvt, dvu, dvua)
Create a new sft package.
subroutine, public src_create(packobj, id, ibcnum, inunit, iout, namemodel, depvartype, pakname, input_mempath, fmi)
Create a source loading package.
subroutine, public uzt_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, fmi, eqnsclfac, dvt, dvu, dvua)
Create a new UZT package.