This subroutine calls the package create routines for packages activated by the user.
721
730
731 class(GweModelType) :: this
732 character(len=*), intent(in) :: filtyp
733 character(len=LINELENGTH) :: errmsg
734 integer(I4B), intent(in) :: ipakid
735 integer(I4B), intent(in) :: ipaknum
736 character(len=*), intent(in) :: pakname
737 character(len=*), intent(in) :: mempath
738 integer(I4B), intent(in) :: inunit
739 integer(I4B), intent(in) :: iout
740
741 class(BndType), pointer :: packobj
742 class(BndType), pointer :: packobj2
743 integer(I4B) :: ip
744
745
746 select case (filtyp)
747 case ('CTP6')
748 call ctp_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
749 pakname, this%depvartype, mempath)
750 case ('ESL6')
751 call esl_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
752 pakname, this%gwecommon, mempath)
753 case ('LKE6')
754 call lke_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
755 pakname, mempath, this%fmi, this%eqnsclfac, &
756 this%gwecommon, this%depvartype, this%depvarunit, &
757 this%depvarunitabbrev)
758 case ('SFE6')
759 call sfe_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
760 pakname, mempath, this%fmi, this%eqnsclfac, &
761 this%gwecommon, this%depvartype, this%depvarunit, &
762 this%depvarunitabbrev)
763 case ('MWE6')
764 call mwe_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
765 pakname, mempath, this%fmi, this%eqnsclfac, &
766 this%gwecommon, this%depvartype, this%depvarunit, &
767 this%depvarunitabbrev)
768 case ('UZE6')
769 call uze_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
770 pakname, mempath, this%fmi, this%eqnsclfac, &
771 this%gwecommon, this%depvartype, this%depvarunit, &
772 this%depvarunitabbrev)
773
774
775
776 case default
777 write (errmsg, *) 'Invalid package type: ', filtyp
779 end select
780
781
782
783
784 do ip = 1, this%bndlist%Count()
785 packobj2 => getbndfromlist(this%bndlist, ip)
786 if (packobj2%packName == pakname) then
787 write (errmsg, '(a,a)') 'Cannot create package. Package name '// &
788 'already exists: ', trim(pakname)
790 end if
791 end do
792 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 ctp_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, depvartype, mempath)
Create a new constant temperature package.
subroutine, public esl_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, gwecommon, input_mempath)
Create an energy source loading package.
subroutine, public lke_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, fmi, eqnsclfac, gwecommon, dvt, dvu, dvua)
Create a new lke package.
subroutine, public mwe_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, fmi, eqnsclfac, gwecommon, dvt, dvu, dvua)
Create new MWE package.
subroutine, public sfe_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, fmi, eqnsclfac, gwecommon, dvt, dvu, dvua)
Create a new sfe package.
subroutine, public uze_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, fmi, eqnsclfac, gwecommon, dvt, dvu, dvua)
Create a new UZE package.