1441
1461
1462 class(GwfModelType) :: this
1463
1464 type(CharacterStringType), dimension(:), contiguous, &
1465 pointer :: pkgtypes => null()
1466 type(CharacterStringType), dimension(:), contiguous, &
1467 pointer :: pkgnames => null()
1468 type(CharacterStringType), dimension(:), contiguous, &
1469 pointer :: mempaths => null()
1470 integer(I4B), dimension(:), contiguous, &
1471 pointer :: inunits => null()
1472 character(len=LENMEMPATH) :: model_mempath
1473 character(len=LENFTYPE) :: pkgtype
1474 character(len=LENPACKAGENAME) :: pkgname
1475 character(len=LENMEMPATH) :: mempath
1476 integer(I4B), pointer :: inunit
1477 integer(I4B), dimension(:), allocatable :: bndpkgs
1478 integer(I4B) :: n
1479 integer(I4B) :: indis = 0
1480 character(len=LENMEMPATH) :: mempathbuy = ''
1481 character(len=LENMEMPATH) :: mempathcsub = ''
1482 character(len=LENMEMPATH) :: mempathhfb = ''
1483 character(len=LENMEMPATH) :: mempathic = ''
1484 character(len=LENMEMPATH) :: mempathnpf = ''
1485 character(len=LENMEMPATH) :: mempathoc = ''
1486 character(len=LENMEMPATH) :: mempathsto = ''
1487 character(len=LENMEMPATH) :: mempathvsc = ''
1488
1489
1491
1492
1493 call mem_setptr(pkgtypes,
'PKGTYPES', model_mempath)
1494 call mem_setptr(pkgnames,
'PKGNAMES', model_mempath)
1495 call mem_setptr(mempaths,
'MEMPATHS', model_mempath)
1496 call mem_setptr(inunits,
'INUNITS', model_mempath)
1497
1498 do n = 1, size(pkgtypes)
1499
1500
1501 pkgtype = pkgtypes(n)
1502 pkgname = pkgnames(n)
1503 mempath = mempaths(n)
1504 inunit => inunits(n)
1505
1506
1507 select case (pkgtype)
1508 case ('DIS6')
1509 indis = 1
1510 call dis_cr(this%dis, this%name, mempath, indis, this%iout)
1511 case ('DISV6')
1512 indis = 1
1513 call disv_cr(this%dis, this%name, mempath, indis, this%iout)
1514 case ('DISU6')
1515 indis = 1
1516 call disu_cr(this%dis, this%name, mempath, indis, this%iout)
1517 case ('NPF6')
1518 this%innpf = 1
1519 mempathnpf = mempath
1520 case ('BUY6')
1521 this%inbuy = 1
1522 mempathbuy = mempath
1523 case ('VSC6')
1524 this%invsc = 1
1525 mempathvsc = mempath
1526 case ('GNC6')
1527 this%ingnc = inunit
1528 case ('HFB6')
1529 this%inhfb = 1
1530 mempathhfb = mempath
1531 case ('STO6')
1532 this%insto = 1
1533 mempathsto = mempath
1534 case ('CSUB6')
1535 this%incsub = 1
1536 mempathcsub = mempath
1537 case ('IC6')
1538 this%inic = 1
1539 mempathic = mempath
1540 case ('MVR6')
1541 this%inmvr = inunit
1542 case ('OC6')
1543 this%inoc = 1
1544 mempathoc = mempath
1545 case ('OBS6')
1546 this%inobs = inunit
1547 case ('WEL6', 'DRN6', 'RIV6', 'GHB6', 'RCH6', &
1548 'EVT6', 'API6', 'CHD6', 'MAW6', 'SFR6', &
1549 'LAK6', 'UZF6')
1551 bndpkgs(size(bndpkgs)) = n
1552 case default
1553
1554 end select
1555 end do
1556
1557
1558 call npf_cr(this%npf, this%name, mempathnpf, this%innpf, this%iout)
1559 call xt3d_cr(this%xt3d, this%name, this%innpf, this%iout)
1560 call buy_cr(this%buy, this%name, mempathbuy, this%inbuy, this%iout)
1561 call vsc_cr(this%vsc, this%name, mempathvsc, this%invsc, this%iout)
1562 call gnc_cr(this%gnc, this%name, this%ingnc, this%iout)
1563 call hfb_cr(this%hfb, this%name, mempathhfb, this%inhfb, this%iout)
1564 call sto_cr(this%sto, this%name, mempathsto, this%insto, this%iout)
1565 call csub_cr(this%csub, this%name, mempathcsub, this%insto, &
1566 this%sto%packName, this%incsub, this%iout)
1567 call ic_cr(this%ic, this%name, mempathic, this%inic, this%iout, this%dis)
1568 call mvr_cr(this%mvr, this%name, this%inmvr, this%iout, this%dis)
1569 call oc_cr(this%oc, this%name, mempathoc, this%inoc, this%iout)
1570 call gwf_obs_cr(this%obs, this%inobs)
1571
1572
1573 call this%ftype_check(indis)
1574
1575 call this%create_bndpkgs(bndpkgs, pkgtypes, pkgnames, mempaths, inunits)
subroutine, public dis_cr(dis, name_model, input_mempath, inunit, iout)
Create a new structured discretization object.
subroutine, public disu_cr(dis, name_model, input_mempath, inunit, iout)
Create a new unstructured discretization object.
subroutine, public disv_cr(dis, name_model, input_mempath, inunit, iout)
Create a new discretization by vertices object.
subroutine, public buy_cr(buyobj, name_model, input_mempath, inunit, iout)
Create a new BUY object.
This module contains the CSUB package methods.
subroutine, public csub_cr(csubobj, name_model, mempath, istounit, stopckname, inunit, iout)
Create a new package object.
subroutine, public hfb_cr(hfbobj, name_model, input_mempath, inunit, iout)
Create a new hfb object.
subroutine, public ic_cr(ic, name_model, input_mempath, inunit, iout, dis)
Create a new initial conditions object.
subroutine, public mvr_cr(mvrobj, name_parent, inunit, iout, dis, iexgmvr)
Create a new mvr object.
subroutine, public npf_cr(npfobj, name_model, input_mempath, inunit, iout)
Create a new NPF object. Pass a inunit value of 0 if npf data will initialized from memory.
subroutine, public oc_cr(ocobj, name_model, input_mempath, inunit, iout)
Create GwfOcType.
This module contains the storage package methods.
subroutine, public sto_cr(stoobj, name_model, mempath, inunit, iout)
Create a new package object.
subroutine, public vsc_cr(vscobj, name_model, input_mempath, inunit, iout)
Create a new package object.
character(len=lenmempath) function create_mem_path(component, subcomponent, context)
returns the path to the memory object
This module contains simulation variables.
character(len=linelength) idm_context
subroutine, public xt3d_cr(xt3dobj, name_model, inunit, iout, ldispopt)
Create a new xt3d object.