52 integer(I4B),
pointer :: inewton => null()
53 integer(I4B),
pointer :: icellavg => null()
54 integer(I4B),
pointer :: ivarcv => null()
55 integer(I4B),
pointer :: idewatcv => null()
56 integer(I4B),
pointer :: ingnc => null()
58 integer(I4B),
pointer :: inmvr => null()
60 integer(I4B),
pointer :: inobs => null()
64 real(dp),
dimension(:),
pointer,
contiguous :: cond => null()
65 real(dp),
dimension(:),
pointer,
contiguous :: condsat => null()
66 integer(I4B),
dimension(:),
pointer,
contiguous :: idxglo => null()
67 integer(I4B),
dimension(:),
pointer,
contiguous :: idxsymglo => null()
68 real(dp),
pointer :: satomega => null()
69 real(dp),
dimension(:),
pointer,
contiguous :: simvals => null()
130 character(len=*),
intent(in) :: filename
131 character(len=*) :: name
132 integer(I4B),
intent(in) :: id
133 integer(I4B),
intent(in) :: m1_id
134 integer(I4B),
intent(in) :: m2_id
135 character(len=*),
intent(in) :: input_mempath
140 integer(I4B) :: m1_index, m2_index
144 baseexchange => exchange
151 exchange%input_mempath = input_mempath
154 call exchange%allocate_scalars()
155 exchange%filename = filename
156 exchange%typename =
'GWF-GWF'
160 if (m1_index > 0)
then
164 exchange%model1 => mb
165 exchange%gwfmodel1 => mb
169 exchange%is_datacopy = .not. exchange%v_model1%is_local
173 if (m2_index > 0)
then
177 exchange%model2 => mb
178 exchange%gwfmodel2 => mb
184 if (.not.
associated(exchange%gwfmodel1) .and. m1_index > 0)
then
185 write (
errmsg,
'(3a)')
'Problem with GWF-GWF exchange ', &
186 trim(exchange%name), &
187 '. First specified GWF Model does not appear to be of the correct type.'
192 if (.not.
associated(exchange%gwfmodel2) .and. m2_index > 0)
then
193 write (
errmsg,
'(3a)')
'Problem with GWF-GWF exchange ', &
194 trim(exchange%name), &
195 '. Second specified GWF Model does not appear to be of the correct type.'
200 call obs_cr(exchange%obs, exchange%inobs)
217 write (
iout,
'(/a,a)')
' Creating exchange: ', this%name
220 if (this%v_model1%idsoln%get() /= this%v_model2%idsoln%get())
then
221 call store_error(
'Two models are connected in a GWF '// &
222 'exchange but they are in different solutions. '// &
223 'GWF models must be in same solution: '// &
224 trim(this%v_model1%name)//
' '// &
225 trim(this%v_model2%name))
230 call this%source_options(
iout)
233 call this%source_dimensions(
iout)
236 call this%allocate_arrays()
239 call this%source_data(
iout)
242 if (
associated(this%gwfmodel1))
then
243 call this%gwfmodel1%npf%increase_edge_count(this%nexg)
245 if (
associated(this%gwfmodel2))
then
246 call this%gwfmodel2%npf%increase_edge_count(this%nexg)
250 if (this%ingnc > 0)
then
251 if (
associated(this%gwfmodel1) .and.
associated(this%gwfmodel2))
then
252 call gnc_cr(this%gnc, this%name, this%ingnc,
iout)
258 if (this%inmvr > 0)
then
259 call this%read_mvr(
iout)
263 call this%gwf_gwf_df_obs()
264 if (
associated(this%gwfmodel1))
then
265 call this%obs%obs_df(
iout, this%name,
'GWF-GWF', this%gwfmodel1%dis)
269 call this%validate_exchange()
278 logical(LGP) :: has_k22, has_spdis, has_vsc
281 if (this%v_model1 == this%v_model2)
then
282 if (this%ixt3d > 0)
then
283 write (errmsg,
'(3a)')
'GWF-GWF exchange ', trim(this%name), &
284 ' is a periodic boundary condition which cannot'// &
285 ' be configured with XT3D'
291 if (this%ixt3d > 0 .and. this%ianglex == 0)
then
292 write (errmsg,
'(3a)')
'GWF-GWF exchange ', trim(this%name), &
293 ' requires that ANGLDEGX be specified as an'// &
294 ' auxiliary variable because XT3D is enabled'
304 if (
associated(this%gwfmodel1))
then
305 has_k22 = (this%gwfmodel1%npf%ik22 /= 0)
306 has_spdis = (this%gwfmodel1%npf%icalcspdis /= 0)
307 has_vsc = (this%gwfmodel1%npf%invsc /= 0)
309 if (
associated(this%gwfmodel2))
then
310 has_k22 = has_k22 .or. (this%gwfmodel2%npf%ik22 /= 0)
311 has_spdis = has_spdis .or. (this%gwfmodel2%npf%icalcspdis /= 0)
312 has_vsc = has_vsc .or. (this%gwfmodel2%npf%invsc /= 0)
319 if (this%ianglex == 0)
then
320 write (errmsg,
'(3a)')
'GWF-GWF exchange ', trim(this%name), &
321 ' requires that ANGLDEGX be specified as an'// &
322 ' auxiliary variable because K22 was specified'// &
323 ' in one or both groundwater models.'
332 if (this%ianglex == 0)
then
333 write (errmsg,
'(3a)')
'GWF-GWF exchange ', trim(this%name), &
334 ' requires that ANGLDEGX be specified as an'// &
335 ' auxiliary variable because specific discharge'// &
336 ' is being calculated in one or both'// &
337 ' groundwater models.'
340 if (this%icdist == 0)
then
341 write (errmsg,
'(3a)')
'GWF-GWF exchange ', trim(this%name), &
342 ' requires that CDIST be specified as an'// &
343 ' auxiliary variable because specific discharge'// &
344 ' is being calculated in one or both'// &
345 ' groundwater models.'
353 write (errmsg,
'(3a)')
'GWF-GWF exchange ', trim(this%name), &
354 ' requires that the Viscosity Package is inactive'// &
355 ' in both of the connected models.'
371 integer(I4B) :: n, iglo, jglo
375 iglo = this%nodem1(n) + this%gwfmodel1%moffset
376 jglo = this%nodem2(n) + this%gwfmodel2%moffset
377 call sparse%addconnection(iglo, jglo, 1)
378 call sparse%addconnection(jglo, iglo, 1)
382 if (this%ingnc > 0)
then
383 call this%gnc%gnc_ac(sparse)
398 integer(I4B) :: n, iglo, jglo
402 iglo = this%nodem1(n) + this%gwfmodel1%moffset
403 jglo = this%nodem2(n) + this%gwfmodel2%moffset
404 this%idxglo(n) = matrix_sln%get_position(iglo, jglo)
405 this%idxsymglo(n) = matrix_sln%get_position(jglo, iglo)
409 if (this%ingnc > 0)
then
410 call this%gnc%gnc_mc(matrix_sln)
423 if (this%inmvr > 0)
call this%mvr%mvr_ar()
426 if (.not. this%use_interface_model())
call this%calc_cond_sat()
429 call this%obs%obs_ar()
446 if (this%inmvr > 0)
call this%mvr%mvr_rp()
449 call this%gwf_gwf_rp_obs()
461 if (this%inmvr > 0)
call this%mvr%mvr_ad()
464 call this%obs%obs_ad()
474 integer(I4B),
intent(in) :: kiter
478 if (this%inmvr > 0)
call this%mvr%xmvr_cf()
482 call this%rewet(kiter)
489 subroutine gwf_gwf_fc(this, kiter, matrix_sln, rhs_sln, inwtflag)
495 integer(I4B),
intent(in) :: kiter
497 real(DP),
dimension(:),
intent(inout) :: rhs_sln
498 integer(I4B),
optional,
intent(in) :: inwtflag
500 integer(I4B) :: inwt, iexg
501 integer(I4B) :: i, nodem1sln, nodem2sln
508 if (this%ingnc > 0)
then
509 do iexg = 1, this%nexg
510 this%gnc%cond(iexg) = this%cond(iexg)
516 call matrix_sln%set_value_pos(this%idxglo(i), this%cond(i))
517 call matrix_sln%set_value_pos(this%idxsymglo(i), this%cond(i))
519 nodem1sln = this%nodem1(i) + this%gwfmodel1%moffset
520 nodem2sln = this%nodem2(i) + this%gwfmodel2%moffset
521 call matrix_sln%add_diag_value(nodem1sln, -this%cond(i))
522 call matrix_sln%add_diag_value(nodem2sln, -this%cond(i))
526 if (this%ingnc > 0)
then
527 call this%gnc%gnc_fc(kiter, matrix_sln)
531 if (this%inmvr > 0)
call this%mvr%mvr_fc()
535 if (
present(inwtflag))
then
536 if (inwtflag == 0) inwt = 0
539 call this%exg_fn(kiter, matrix_sln)
543 if (this%ingnc > 0)
then
545 call this%gnc%gnc_fn(kiter, matrix_sln, this%condsat, &
546 ihc_opt=this%ihc, ivarcv_opt=this%ivarcv, &
547 ictm1_opt=this%gwfmodel1%npf%icelltype, &
548 ictm2_opt=this%gwfmodel2%npf%icelltype)
562 integer(I4B),
intent(in) :: kiter
568 integer(I4B) :: nodensln, nodemsln
569 integer(I4B) :: ibdn, ibdm
570 real(DP) :: topn, topm
571 real(DP) :: botn, botm
572 real(DP) :: topup, botup
580 do iexg = 1, this%nexg
581 n = this%nodem1(iexg)
582 m = this%nodem2(iexg)
583 nodensln = this%nodem1(iexg) + this%gwfmodel1%moffset
584 nodemsln = this%nodem2(iexg) + this%gwfmodel2%moffset
585 ibdn = this%gwfmodel1%ibound(n)
586 ibdm = this%gwfmodel2%ibound(m)
587 topn = this%gwfmodel1%dis%top(n)
588 topm = this%gwfmodel2%dis%top(m)
589 botn = this%gwfmodel1%dis%bot(n)
590 botm = this%gwfmodel2%dis%bot(m)
591 hn = this%gwfmodel1%x(n)
592 hm = this%gwfmodel2%x(m)
593 if (this%ihc(iexg) == 0)
then
598 if (hm < hn) nisup = .true.
615 if (this%gwfmodel1%npf%icelltype(n) == 0) cycle
617 if (this%gwfmodel2%npf%icelltype(m) == 0) cycle
621 if (this%ihc(iexg) == 2)
then
622 topup = min(topn, topm)
623 botup = max(botn, botm)
627 cond = this%condsat(iexg)
632 consterm = -cond * (hup - hdn)
637 term = consterm * derv
638 this%gwfmodel1%rhs(n) = this%gwfmodel1%rhs(n) + term * hn
639 this%gwfmodel2%rhs(m) = this%gwfmodel2%rhs(m) - term * hn
640 call matrix_sln%add_diag_value(nodensln, term)
642 call matrix_sln%add_value_pos(this%idxsymglo(iexg), -term)
647 term = -consterm * derv
648 this%gwfmodel1%rhs(n) = this%gwfmodel1%rhs(n) + term * hm
649 this%gwfmodel2%rhs(m) = this%gwfmodel2%rhs(m) - term * hm
650 call matrix_sln%add_diag_value(nodemsln, -term)
652 call matrix_sln%add_value_pos(this%idxglo(iexg), term)
664 subroutine gwf_gwf_cq(this, icnvg, isuppress_output, isolnid)
667 integer(I4B),
intent(inout) :: icnvg
668 integer(I4B),
intent(in) :: isuppress_output
669 integer(I4B),
intent(in) :: isolnid
672 call this%gwf_gwf_calc_simvals()
675 call this%gwf_gwf_set_flow_to_npf()
678 call this%gwf_gwf_add_to_flowja()
691 integer(I4B) :: n1, n2
692 integer(I4B) :: ibdn1, ibdn2
699 ibdn1 = this%gwfmodel1%ibound(n1)
700 ibdn2 = this%gwfmodel2%ibound(n2)
701 if (ibdn1 /= 0 .and. ibdn2 /= 0)
then
702 rrate = this%qcalc(i, n1, n2)
703 if (this%ingnc > 0)
then
704 rrate = rrate + this%gnc%deltaqgnc(i)
707 this%simvals(i) = rrate
720 integer(I4B) :: idiag
725 if (
associated(this%gwfmodel1))
then
727 if (this%gwfmodel1%ibound(n) > 0)
then
728 flow = this%simvals(i)
729 idiag = this%gwfmodel1%ia(n)
730 this%gwfmodel1%flowja(idiag) = this%gwfmodel1%flowja(idiag) + flow
734 if (
associated(this%gwfmodel2))
then
736 if (this%gwfmodel2%ibound(n) > 0)
then
737 flow = -this%simvals(i)
738 idiag = this%gwfmodel2%ia(n)
739 this%gwfmodel2%flowja(idiag) = this%gwfmodel2%flowja(idiag) + flow
756 integer(I4B) :: n1, n2
757 integer(I4B) :: ibdn1, ibdn2
758 integer(I4B) :: ictn1, ictn2
761 real(DP) :: topn1, topn2
762 real(DP) :: botn1, botn2
763 real(DP) :: satn1, satn2
774 if (this%gwfmodel1%npf%icalcspdis == 0 .and. &
775 this%gwfmodel2%npf%icalcspdis == 0)
return
780 rrate = this%simvals(i)
785 ibdn1 = this%gwfmodel1%ibound(n1)
786 ibdn2 = this%gwfmodel2%ibound(n2)
787 ictn1 = this%gwfmodel1%npf%icelltype(n1)
788 ictn2 = this%gwfmodel2%npf%icelltype(n2)
789 topn1 = this%gwfmodel1%dis%top(n1)
790 topn2 = this%gwfmodel2%dis%top(n2)
791 botn1 = this%gwfmodel1%dis%bot(n1)
792 botn2 = this%gwfmodel2%dis%bot(n2)
793 satn1 = this%gwfmodel1%npf%sat(n1)
794 satn2 = this%gwfmodel2%npf%sat(n2)
795 hn1 = this%gwfmodel1%x(n1)
796 hn2 = this%gwfmodel2%x(n2)
803 if (botn1 < botn2)
then
809 if (this%ianglex > 0)
then
810 angle = this%auxvar(this%ianglex, i) *
dpio180
815 call store_error(
'error in gwf_gwf_cq', terminate=.true.)
819 thksat =
thksatnm(ibdn1, ibdn2, ictn1, ictn2, this%inewton, ihc, &
820 hn1, hn2, satn1, satn2, &
821 topn1, topn2, botn1, botn2)
827 if (this%icdist > 0)
then
828 dltot = this%auxvar(this%icdist, i)
830 call store_error(
'error in gwf_gwf_cq', terminate=.true.)
832 distance = dltot * this%cl1(i) / (this%cl1(i) + this%cl2(i))
833 if (this%gwfmodel1%npf%icalcspdis == 1)
then
834 call this%gwfmodel1%npf%set_edge_properties(n1, ihc, rrate, area, &
840 if (this%icdist > 0)
then
841 dltot = this%auxvar(this%icdist, i)
843 call store_error(
'error in gwf_gwf_cq', terminate=.true.)
845 if (this%gwfmodel2%npf%icalcspdis == 1)
then
846 distance = dltot * this%cl2(i) / (this%cl1(i) + this%cl2(i))
847 if (ihc /= 0) rrate = -rrate
848 call this%gwfmodel2%npf%set_edge_properties(n2, ihc, rrate, area, &
859 subroutine gwf_gwf_bd(this, icnvg, isuppress_output, isolnid)
865 integer(I4B),
intent(inout) :: icnvg
866 integer(I4B),
intent(in) :: isuppress_output
867 integer(I4B),
intent(in) :: isolnid
869 character(len=LENBUDTXT),
dimension(1) :: budtxt
870 real(DP),
dimension(2, 1) :: budterm
871 real(DP) :: ratin, ratout
874 budtxt(1) =
' FLOW-JA-FACE'
880 if (
associated(this%gwfmodel1))
then
881 budterm(1, 1) = ratin
882 budterm(2, 1) = ratout
883 call this%gwfmodel1%model_bdentry(budterm, budtxt, this%name)
887 if (
associated(this%gwfmodel2))
then
888 budterm(1, 1) = ratout
889 budterm(2, 1) = ratin
890 call this%gwfmodel2%model_bdentry(budterm, budtxt, this%name)
895 call this%gwf_gwf_chd_bd()
898 if (this%inmvr > 0)
call this%mvr%mvr_bd()
912 character(len=LENBUDTXT),
dimension(1) :: budtxt
915 real(DP),
dimension(2, 1) :: budterm
916 real(DP) :: ratin, ratout
920 budtxt(1) =
'FLOW-JA-FACE-CHD'
923 if (
associated(this%gwfmodel1))
then
928 if (this%gwfmodel1%ibound(n) < 0)
then
937 budterm(1, 1) = ratin
938 budterm(2, 1) = ratout
939 call this%gwfmodel1%model_bdentry(budterm, budtxt, this%name)
943 if (
associated(this%gwfmodel2))
then
948 if (this%gwfmodel2%ibound(n) < 0)
then
958 budterm(1, 1) = ratin
959 budterm(2, 1) = ratout
960 call this%gwfmodel2%model_bdentry(budterm, budtxt, this%name)
972 integer(I4B) :: icbcfl, ibudfl
975 if (
associated(this%gwfmodel1))
then
976 call this%gwf_gwf_bdsav_model(this%gwfmodel1)
980 if (
associated(this%gwfmodel2))
then
981 call this%gwf_gwf_bdsav_model(this%gwfmodel2)
990 if (this%inmvr > 0)
call this%mvr%mvr_bdsav(icbcfl, ibudfl, 0)
993 if (this%inobs /= 0)
then
994 call this%gwf_gwf_save_simvals()
1006 character(len=LENPACKAGENAME + 4) :: packname
1007 character(len=LENBUDTXT),
dimension(1) :: budtxt
1009 class(virtualmodeltype),
pointer :: nbr_model
1010 character(len=20) :: nodestr
1011 character(len=LENBOUNDNAME) :: bname
1012 integer(I4B) :: ntabrows
1013 integer(I4B) :: nodeu
1014 integer(I4B) :: i, n1, n2, n1u, n2u
1015 integer(I4B) :: ibinun
1016 real(DP) :: ratin, ratout, rrate
1017 logical(LGP) :: is_for_model1
1018 real(DP),
dimension(this%naux) :: auxrow
1020 budtxt(1) =
' FLOW-JA-FACE'
1021 packname =
'EXG '//this%name
1022 packname = adjustr(packname)
1023 if (
associated(model, this%gwfmodel1))
then
1024 output_tab => this%outputtab1
1025 nbr_model => this%v_model2
1026 is_for_model1 = .true.
1028 output_tab => this%outputtab2
1029 nbr_model => this%v_model1
1030 is_for_model1 = .false.
1034 if (this%iprflow /= 0)
then
1037 if (model%oc%oc_save(
'BUDGET'))
then
1038 call output_tab%set_title(packname)
1042 call output_tab%set_kstpkper(
kstp,
kper)
1051 if (this%v_model1%ibound%get(n1) /= 0 .and. &
1052 this%v_model2%ibound%get(n2) /= 0)
then
1053 ntabrows = ntabrows + 1
1056 if (ntabrows > 0)
then
1057 call output_tab%set_maxbound(ntabrows)
1064 if (this%ipakcb /= 0)
then
1065 ibinun = model%oc%oc_save_unit(
'BUDGET')
1072 if (.not. model%oc%oc_save(
'BUDGET')) ibinun = 0
1075 if (ibinun /= 0)
then
1076 call model%dis%record_srcdst_list_header(budtxt(1), &
1081 this%naux, this%auxname, &
1082 ibinun, this%nexg, &
1094 if (this%inamedbound > 0)
then
1095 bname = this%boundname(i)
1106 if (this%v_model1%ibound%get(n1) /= 0 .and. &
1107 this%v_model2%ibound%get(n2) /= 0)
then
1108 rrate = this%simvals(i)
1111 if (this%iprflow /= 0)
then
1112 if (model%oc%oc_save(
'BUDGET'))
then
1115 if (is_for_model1)
then
1116 nodeu = model%dis%get_nodeuser(n1)
1117 call model%dis%nodeu_to_string(nodeu, nodestr)
1118 call output_tab%print_list_entry(i, trim(adjustl(nodestr)), &
1121 nodeu = model%dis%get_nodeuser(n2)
1122 call model%dis%nodeu_to_string(nodeu, nodestr)
1123 call output_tab%print_list_entry(i, trim(adjustl(nodestr)), &
1128 if (rrate <
dzero)
then
1129 ratout = ratout - rrate
1131 ratin = ratin + rrate
1136 n1u = this%v_model1%dis_get_nodeuser(n1)
1137 n2u = this%v_model2%dis_get_nodeuser(n2)
1138 if (ibinun /= 0)
then
1139 if (this%naux > 0)
then
1140 auxrow(:) = this%auxvar(:, i)
1142 if (is_for_model1)
then
1143 call model%dis%record_mf6_list_entry(ibinun, n1u, n2u, rrate, &
1144 this%naux, auxrow, &
1147 call model%dis%record_mf6_list_entry(ibinun, n2u, n1u, -rrate, &
1148 this%naux, auxrow, &
1167 integer(I4B) :: iexg, n1, n2
1168 integer(I4B) :: ibudfl
1169 real(DP) :: flow, deltaqgnc
1170 character(len=LINELENGTH) :: node1str, node2str
1172 character(len=*),
parameter :: fmtheader = &
1173 "(/1x, 'SUMMARY OF EXCHANGE RATES FOR EXCHANGE ', a, ' WITH ID ', i0, /, &
1174 &2a16, 5a16, /, 112('-'))"
1175 character(len=*),
parameter :: fmtheader2 = &
1176 "(/1x, 'SUMMARY OF EXCHANGE RATES FOR EXCHANGE ', a, ' WITH ID ', i0, /, &
1177 &2a16, 4a16, /, 96('-'))"
1178 character(len=*),
parameter :: fmtdata = &
1179 "(2a16, 5(1pg16.6))"
1182 call this%gwf_gwf_bdsav()
1188 if (this%iprflow /= 0)
then
1189 if (this%ingnc > 0)
then
1190 write (
iout, fmtheader) trim(adjustl(this%name)), this%id,
'NODEM1', &
1191 'NODEM2',
'COND',
'X_M1',
'X_M2',
'DELTAQGNC', &
1194 write (
iout, fmtheader2) trim(adjustl(this%name)), this%id,
'NODEM1', &
1195 'NODEM2',
'COND',
'X_M1',
'X_M2',
'FLOW'
1197 do iexg = 1, this%nexg
1198 n1 = this%nodem1(iexg)
1199 n2 = this%nodem2(iexg)
1200 flow = this%simvals(iexg)
1201 call this%v_model1%dis_noder_to_string(n1, node1str)
1202 call this%v_model2%dis_noder_to_string(n2, node2str)
1204 if (this%ingnc > 0)
then
1205 deltaqgnc = this%gnc%deltaqgnc(iexg)
1206 write (
iout, fmtdata) trim(adjustl(node1str)), &
1207 trim(adjustl(node2str)), &
1208 this%cond(iexg), this%v_model1%x%get(n1), &
1209 this%v_model2%x%get(n2), deltaqgnc, flow
1211 write (
iout, fmtdata) trim(adjustl(node1str)), &
1212 trim(adjustl(node2str)), &
1213 this%cond(iexg), this%v_model1%x%get(n1), &
1214 this%v_model2%x%get(n2), flow
1221 if (this%inmvr > 0)
call this%mvr%mvr_ot_bdsummary(ibudfl)
1224 call this%obs%obs_ot()
1241 integer(I4B),
intent(in) :: iout
1244 character(len=LENVARNAME),
dimension(3) :: cellavg_method = &
1245 &[character(len=LENVARNAME) ::
'HARMONIC',
'LOGARITHMIC',
'AMT-LMK']
1246 character(len=
linelength) :: gnc_fname, mvr_fname
1249 call mem_set_value(this%icellavg,
'CELL_AVERAGING', this%input_mempath, &
1250 cellavg_method, found%cell_averaging)
1251 call mem_set_value(this%inewton,
'NEWTON', this%input_mempath, found%newton)
1252 call mem_set_value(this%ixt3d,
'XT3D', this%input_mempath, found%xt3d)
1253 call mem_set_value(this%ivarcv,
'VARIABLECV', this%input_mempath, &
1255 call mem_set_value(this%idewatcv,
'DEWATERED', this%input_mempath, &
1258 write (iout,
'(1x,a)')
'PROCESSING GWF-GWF EXCHANGE OPTIONS'
1261 call this%DisConnExchangeType%source_options(iout)
1263 if (found%cell_averaging)
then
1264 if (this%icellavg == 0)
then
1265 call store_error(
'Unrecognized input value for CELL_AVERAGING option.')
1269 this%icellavg = this%icellavg - 1
1270 write (iout,
'(4x,a,a)') &
1271 'CELL AVERAGING METHOD HAS BEEN SET TO: ', &
1272 trim(cellavg_method(this%icellavg + 1))
1276 if (found%newton)
then
1277 write (iout,
'(4x,a)') &
1278 'NEWTON-RAPHSON method used for unconfined cells'
1281 if (found%xt3d)
then
1282 write (iout,
'(4x,a)')
'XT3D WILL BE APPLIED ON THE INTERFACE'
1285 if (found%variablecv)
then
1286 write (iout,
'(4x,a)') &
1287 'VERTICAL CONDUCTANCE VARIES WITH WATER TABLE.'
1290 if (found%dewatered)
then
1291 write (iout,
'(4x,a)') &
1292 'VERTICAL CONDUCTANCE ACCOUNTS FOR DEWATERED PORTION OF '// &
1293 'AN UNDERLYING CELL.'
1297 if (
filein_fname(gnc_fname,
'GNC6_FILENAME', this%input_mempath, &
1298 this%filename))
then
1300 call openfile(this%ingnc, iout, gnc_fname,
'GNC')
1301 write (iout,
'(4x,a)') &
1302 'GHOST NODES WILL BE READ FROM ', trim(gnc_fname)
1306 if (
filein_fname(mvr_fname,
'MVR6_FILENAME', this%input_mempath, &
1307 this%filename))
then
1309 call openfile(this%inmvr, iout, mvr_fname,
'MVR')
1310 write (iout,
'(4x,a)') &
1311 'WATER MOVER INFORMATION WILL BE READ FROM ', trim(mvr_fname)
1315 if (.not. this%is_datacopy)
then
1316 if (
filein_fname(this%obs%inputFilename,
'OBS6_FILENAME', &
1317 this%input_mempath, this%filename))
then
1318 this%obs%active = .true.
1319 this%obs%inUnitObs =
getunit()
1320 call openfile(this%obs%inUnitObs, iout, this%obs%inputFilename,
'OBS')
1324 write (iout,
'(1x,a)')
'END OF GWF-GWF EXCHANGE OPTIONS'
1327 if (this%inewton > 0)
then
1328 this%satomega =
dem6
1342 integer(I4B) :: i, nm1, nm2, nmgnc1, nmgnc2
1343 character(len=*),
parameter :: fmterr = &
1344 "('EXCHANGE NODES ', i0, ' AND ', i0,"// &
1345 "' NOT CONSISTENT WITH GNC NODES ', "// &
1350 call this%gnc%gnc_df(this%gwfmodel1, m2=this%gwfmodel2)
1353 if (.not. this%gnc%implicit .and. this%inewton /= 0)
then
1354 call store_error(
'GNC is explicit, but GWF exchange has active newton.')
1355 call store_error(
'Add implicit option to GNC or remove NEWTON from '// &
1361 if (this%nexg /= this%gnc%nexg)
then
1362 call store_error(
'Number of exchanges does not match number of GNCs')
1368 if (this%nodem1(i) /= this%gnc%nodem1(i) .or. &
1369 this%nodem2(i) /= this%gnc%nodem2(i))
then
1370 nm1 = this%gwfmodel1%dis%get_nodeuser(this%nodem1(i))
1371 nm2 = this%gwfmodel2%dis%get_nodeuser(this%nodem2(i))
1372 nmgnc1 = this%gwfmodel1%dis%get_nodeuser(this%gnc%nodem1(i))
1373 nmgnc2 = this%gwfmodel2%dis%get_nodeuser(this%gnc%nodem2(i))
1374 write (errmsg, fmterr) nm1, nm2, nmgnc1, nmgnc2
1395 integer(I4B),
intent(in) :: iout
1406 if (this%v_model1%is_local)
then
1407 dis => this%gwfmodel1%dis
1408 else if (this%v_model2%is_local)
then
1409 dis => this%gwfmodel2%dis
1411 call exg_mvr_cr(this%mvr, this%name, this%inmvr, iout, dis)
1412 this%mvr%model1 => this%v_model1
1413 this%mvr%model2 => this%v_model2
1414 this%mvr%suppress_fileout = this%is_datacopy
1426 integer(I4B),
intent(in) :: kiter
1428 integer(I4B) :: iexg
1429 integer(I4B) :: n, m
1430 integer(I4B) :: ibdn, ibdm
1433 integer(I4B) :: irewet
1434 character(len=30) :: nodestrn, nodestrm
1435 character(len=*),
parameter :: fmtrwt = &
1436 "(1x, 'CELL ',A,' REWET FROM GWF MODEL ',A,' CELL ',A, &
1437 &' FOR ITER. ',I0, ' STEP ',I0, ' PERIOD ', I0)"
1440 do iexg = 1, this%nexg
1441 n = this%nodem1(iexg)
1442 m = this%nodem2(iexg)
1443 hn = this%gwfmodel1%x(n)
1444 hm = this%gwfmodel2%x(m)
1445 ibdn = this%gwfmodel1%ibound(n)
1446 ibdm = this%gwfmodel2%ibound(m)
1447 ihc = this%ihc(iexg)
1448 call this%gwfmodel1%npf%rewet_check(kiter, n, hm, ibdm, ihc, &
1449 this%gwfmodel1%x, irewet)
1450 if (irewet == 1)
then
1451 call this%gwfmodel1%dis%noder_to_string(n, nodestrn)
1452 call this%gwfmodel2%dis%noder_to_string(m, nodestrm)
1453 write (this%gwfmodel1%iout, fmtrwt) trim(nodestrn), &
1454 trim(this%gwfmodel2%name), trim(nodestrm), kiter,
kstp,
kper
1456 call this%gwfmodel2%npf%rewet_check(kiter, m, hn, ibdn, ihc, &
1457 this%gwfmodel2%x, irewet)
1458 if (irewet == 1)
then
1459 call this%gwfmodel1%dis%noder_to_string(n, nodestrm)
1460 call this%gwfmodel2%dis%noder_to_string(m, nodestrn)
1461 write (this%gwfmodel2%iout, fmtrwt) trim(nodestrn), &
1462 trim(this%gwfmodel1%name), trim(nodestrm), kiter,
kstp,
kper
1466 end subroutine rewet
1475 integer(I4B) :: iexg
1476 integer(I4B) :: n, m, ihc
1477 real(DP) :: topn, topm
1478 real(DP) :: botn, botm
1479 real(DP) :: satn, satm
1480 real(DP) :: thickn, thickm
1481 real(DP) :: hyn, hym
1484 real(DP),
dimension(3) :: vg
1486 do iexg = 1, this%nexg
1488 ihc = this%ihc(iexg)
1489 n = this%nodem1(iexg)
1490 m = this%nodem2(iexg)
1491 topn = this%gwfmodel1%dis%top(n)
1492 topm = this%gwfmodel2%dis%top(m)
1493 botn = this%gwfmodel1%dis%bot(n)
1494 botm = this%gwfmodel2%dis%bot(m)
1495 satn = this%gwfmodel1%npf%sat(n)
1496 satm = this%gwfmodel2%npf%sat(m)
1497 thickn = (topn - botn) * satn
1498 thickm = (topm - botm) * satm
1507 hyn = this%gwfmodel1%npf%hy_eff(n, 0, ihc, vg=vg)
1508 hym = this%gwfmodel2%npf%hy_eff(m, 0, ihc, vg=vg)
1509 csat =
vcond(1, 1, 1, 1, 0, 1, 1,
done, &
1519 call this%calc_hy_horizontal(iexg, hyn, hym)
1521 fawidth = this%hwva(iexg)
1522 csat =
hcond(1, 1, 1, 1, 0, ihc, &
1523 this%icellavg,
done, &
1524 topn, topm, satn, satm, hyn, hym, &
1527 this%cl1(iexg), this%cl2(iexg), &
1532 this%condsat(iexg) = csat
1547 integer(I4B) :: iexg
1548 integer(I4B) :: n, m, ihc
1549 integer(I4B) :: ibdn, ibdm
1550 integer(I4B) :: ictn, ictm
1551 real(DP) :: topn, topm
1552 real(DP) :: botn, botm
1553 real(DP) :: satn, satm
1554 real(DP) :: hyn, hym
1558 real(DP),
dimension(3) :: vg
1561 do iexg = 1, this%nexg
1562 ihc = this%ihc(iexg)
1563 n = this%nodem1(iexg)
1564 m = this%nodem2(iexg)
1565 ibdn = this%gwfmodel1%ibound(n)
1566 ibdm = this%gwfmodel2%ibound(m)
1567 ictn = this%gwfmodel1%npf%icelltype(n)
1568 ictm = this%gwfmodel2%npf%icelltype(m)
1569 topn = this%gwfmodel1%dis%top(n)
1570 topm = this%gwfmodel2%dis%top(m)
1571 botn = this%gwfmodel1%dis%bot(n)
1572 botm = this%gwfmodel2%dis%bot(m)
1573 satn = this%gwfmodel1%npf%sat(n)
1574 satm = this%gwfmodel2%npf%sat(m)
1575 hn = this%gwfmodel1%x(n)
1576 hm = this%gwfmodel2%x(m)
1585 hyn = this%gwfmodel1%npf%hy_eff(n, 0, ihc, vg=vg)
1586 hym = this%gwfmodel2%npf%hy_eff(m, 0, ihc, vg=vg)
1587 cond =
vcond(ibdn, ibdm, ictn, ictm, this%inewton, this%ivarcv, &
1588 this%idewatcv, this%condsat(iexg), hn, hm, hyn, hym, &
1589 satn, satm, topn, topm, botn, botm, this%hwva(iexg))
1593 call this%calc_hy_horizontal(iexg, hyn, hym)
1595 fawidth = this%hwva(iexg)
1596 cond =
hcond(ibdn, ibdm, ictn, ictm, this%inewton, &
1597 this%ihc(iexg), this%icellavg, this%condsat(iexg), &
1598 hn, hm, satn, satm, hyn, hym, topn, topm, botn, botm, &
1599 this%cl1(iexg), this%cl2(iexg), fawidth)
1602 this%cond(iexg) = cond
1616 integer(I4B),
intent(in) :: iexg
1617 real(DP),
intent(out) :: hyn
1618 real(DP),
intent(out) :: hym
1620 integer(I4B) :: n, m
1622 real(DP),
dimension(3) :: vg
1624 n = this%nodem1(iexg)
1625 m = this%nodem2(iexg)
1626 hyn = this%gwfmodel1%npf%k11(n)
1627 hym = this%gwfmodel2%npf%k11(m)
1628 if (this%ianglex == 0)
return
1629 angle = this%auxvar(this%ianglex, iexg) *
dpio180
1630 vg(1) = abs(cos(angle))
1631 vg(2) = abs(sin(angle))
1633 if (this%gwfmodel1%npf%ik22 /= 0)
then
1634 hyn = this%gwfmodel1%npf%hy_eff(n, 0, 1, vg=vg)
1636 if (this%gwfmodel2%npf%ik22 /= 0)
then
1637 hym = this%gwfmodel2%npf%hy_eff(m, 0, 1, vg=vg)
1652 call this%DisConnExchangeType%allocate_scalars()
1654 call mem_allocate(this%icellavg,
'ICELLAVG', this%memoryPath)
1655 call mem_allocate(this%ivarcv,
'IVARCV', this%memoryPath)
1656 call mem_allocate(this%idewatcv,
'IDEWATCV', this%memoryPath)
1657 call mem_allocate(this%inewton,
'INEWTON', this%memoryPath)
1658 call mem_allocate(this%ingnc,
'INGNC', this%memoryPath)
1659 call mem_allocate(this%inmvr,
'INMVR', this%memoryPath)
1660 call mem_allocate(this%inobs,
'INOBS', this%memoryPath)
1661 call mem_allocate(this%satomega,
'SATOMEGA', this%memoryPath)
1669 this%satomega =
dzero
1683 if (this%ingnc > 0)
then
1684 call this%gnc%gnc_da()
1685 deallocate (this%gnc)
1687 if (this%inmvr > 0)
then
1688 call this%mvr%mvr_da()
1689 deallocate (this%mvr)
1691 call this%obs%obs_da()
1692 deallocate (this%obs)
1702 if (
associated(this%outputtab1))
then
1703 call this%outputtab1%table_da()
1704 deallocate (this%outputtab1)
1705 nullify (this%outputtab1)
1707 if (
associated(this%outputtab2))
then
1708 call this%outputtab2%table_da()
1709 deallocate (this%outputtab2)
1710 nullify (this%outputtab2)
1714 deallocate (this%filename)
1726 call this%DisConnExchangeType%disconnex_da()
1739 character(len=LINELENGTH) :: text
1740 integer(I4B) :: ntabcol, i
1742 call this%DisConnExchangeType%allocate_arrays()
1744 call mem_allocate(this%cond, this%nexg,
'COND', this%memoryPath)
1745 call mem_allocate(this%idxglo, this%nexg,
'IDXGLO', this%memoryPath)
1746 call mem_allocate(this%idxsymglo, this%nexg,
'IDXSYMGLO', this%memoryPath)
1747 call mem_allocate(this%condsat, this%nexg,
'CONDSAT', this%memoryPath)
1748 call mem_allocate(this%simvals, this%nexg,
'SIMVALS', this%memoryPath)
1752 this%cond(i) = dnodata
1756 if (this%iprflow /= 0)
then
1760 if (this%inamedbound > 0)
then
1761 ntabcol = ntabcol + 1
1766 if (this%v_model1%is_local)
then
1767 call table_cr(this%outputtab1, this%name,
' ')
1768 call this%outputtab1%table_df(this%nexg, ntabcol, this%gwfmodel1%iout, &
1771 call this%outputtab1%initialize_column(text, 10, alignment=tabcenter)
1773 call this%outputtab1%initialize_column(text, 20, alignment=tableft)
1775 call this%outputtab1%initialize_column(text, 15, alignment=tabcenter)
1776 if (this%inamedbound > 0)
then
1778 call this%outputtab1%initialize_column(text, 20, alignment=tableft)
1782 if (this%v_model2%is_local)
then
1783 call table_cr(this%outputtab2, this%name,
' ')
1784 call this%outputtab2%table_df(this%nexg, ntabcol, this%gwfmodel2%iout, &
1787 call this%outputtab2%initialize_column(text, 10, alignment=tabcenter)
1789 call this%outputtab2%initialize_column(text, 20, alignment=tableft)
1791 call this%outputtab2%initialize_column(text, 15, alignment=tabcenter)
1792 if (this%inamedbound > 0)
then
1794 call this%outputtab2%initialize_column(text, 20, alignment=tableft)
1808 integer(I4B) :: indx
1812 call this%obs%StoreObsType(
'flow-ja-face', .true., indx)
1829 character(len=LENBOUNDNAME) :: bname
183210
format(
'Exchange "', a,
'" for observation "', a, &
1833 '" is invalid in package "', a,
'"')
183420
format(
'Exchange id "', i0,
'" for observation "', a, &
1835 '" is invalid in package "', a,
'"')
1837 do i = 1, this%obs%npakobs
1838 obsrv => this%obs%pakobs(i)%obsrv
1843 call obsrv%ResetObsIndex()
1844 obsrv%BndFound = .false.
1846 bname = obsrv%FeatureName
1847 if (bname /=
'')
then
1852 if (this%inamedbound /= 0)
then
1854 if (this%boundname(j) == bname)
then
1856 obsrv%BndFound = .true.
1857 obsrv%CurrentTimeStepEndValue =
dzero
1858 call obsrv%AddObsIndex(j)
1862 if (.not. jfound)
then
1863 write (errmsg, 10) trim(bname), trim(obsrv%ObsTypeId), trim(this%name)
1868 if (obsrv%intPak1 <= this%nexg .and. obsrv%intPak1 > 0)
then
1870 obsrv%BndFound = .true.
1871 obsrv%CurrentTimeStepEndValue =
dzero
1872 call obsrv%AddObsIndex(obsrv%intPak1)
1876 if (.not. jfound)
then
1877 write (errmsg, 20) obsrv%intPak1, trim(obsrv%ObsTypeId), trim(this%name)
1907 integer(I4B),
intent(in) :: iexg
1908 integer(I4B),
intent(in) :: n1
1909 integer(I4B),
intent(in) :: n2
1913 qcalc = this%cond(iexg) * (this%gwfmodel2%x(n2) - this%gwfmodel1%x(n1))
1925 integer(I4B) :: iasym
1931 if (this%inewton /= 0) iasym = 1
1934 if (this%ingnc > 0)
then
1935 if (this%gnc%iasym /= 0) iasym = 1
1945 class(basemodeltype),
pointer,
intent(in) :: model
1947 logical(LGP) :: is_connected
1949 is_connected = .false.
1954 if (
associated(this%gwfmodel1, model))
then
1955 is_connected = .true.
1956 else if (
associated(this%gwfmodel2, model))
then
1957 is_connected = .true.
1969 logical(LGP) :: use_im
1971 integer(I4B) :: inbuy_m1
1973 use_im = this%DisConnExchangeType%use_interface_model()
1974 use_im = use_im .or. (this%ixt3d > 0)
1977 select type (m => this%v_model1)
1979 inbuy_m1 = m%inbuy%get()
1981 use_im = use_im .or. (inbuy_m1 > 0)
2000 integer(I4B) :: iexg
2005 if (this%obs%npakobs > 0)
then
2006 call this%obs%obs_bd_clear()
2007 do i = 1, this%obs%npakobs
2008 obsrv => this%obs%pakobs(i)%obsrv
2009 do j = 1, obsrv%indxbnds_count
2010 iexg = obsrv%indxbnds(j)
2012 select case (obsrv%ObsTypeId)
2013 case (
'FLOW-JA-FACE')
2014 n1 = this%nodem1(iexg)
2015 n2 = this%nodem2(iexg)
2016 v = this%simvals(iexg)
2018 errmsg =
'Unrecognized observation type: '// &
2019 trim(obsrv%ObsTypeId)
2023 call this%obs%SaveOneSimval(obsrv, v)
2042 integer(I4B),
intent(in) :: inunitobs
2043 integer(I4B),
intent(in) :: iout
2045 integer(I4B) :: n, iexg, istat
2046 integer(I4B) :: icol, istart, istop
2048 character(len=LINELENGTH) :: string
2050 string = obsrv%IDstring
2053 call urword(string, icol, istart, istop, 1, n, r, iout, inunitobs)
2054 read (string(istart:istop),
'(i10)', iostat=istat) iexg
2055 if (istat == 0)
then
2056 obsrv%intPak1 = iexg
2060 obsrv%FeatureName = trim(adjustl(string))
2075 class(*),
pointer,
intent(inout) :: obj
2080 if (.not.
associated(obj))
return
2095 type(
listtype),
intent(inout) :: list
2096 integer(I4B),
intent(in) :: idx
2100 class(*),
pointer :: obj
2102 obj => list%GetItem(idx)
subroutine exg_fp(this)
Final processing.
subroutine exg_da(this)
Deallocate memory.
subroutine exg_rp(this)
Read and prepare.
logical(lgp) function connects_model(this, model)
Should return true when the exchange should be added to the solution where the model resides.
subroutine, public addbaseexchangetolist(list, exchange)
Add the exchange object (BaseExchangeType) to a list.
subroutine exg_ot(this)
Run output routines.
subroutine exg_ad(this)
Advance.
class(basemodeltype) function, pointer, public getbasemodelfromlist(list, idx)
This module contains the BudgetModule.
subroutine, public rate_accumulator(flow, rin, rout)
Rate accumulator subroutine.
This module contains simulation constants.
integer(i4b), parameter linelength
maximum length of a standard line
@ tabcenter
centered table column
@ tableft
left justified table column
integer(i4b), parameter lenpackagename
maximum length of the package name
integer(i4b), parameter namedboundflag
named bound flag
real(dp), parameter dnodata
real no data constant
integer(i4b), parameter lenvarname
maximum length of a variable name
real(dp), parameter dhalf
real constant 1/2
integer(i4b), parameter lenauxname
maximum length of a aux variable
integer(i4b), parameter lenboundname
maximum length of a bound name
real(dp), parameter dpio180
real constant
real(dp), parameter dem6
real constant 1e-6
real(dp), parameter dzero
real constant zero
integer(i4b), parameter lenbudtxt
maximum length of a budget component names
real(dp), parameter done
real constant 1
logical(lgp) function use_interface_model(this)
Should interface model be used to handle these exchanges, to be overridden for inheriting types.
subroutine allocate_scalars(this)
Allocate scalars and initialize to defaults.
subroutine allocate_arrays(this)
Allocate array data, using the number of connected nodes nexg.
subroutine source_options(this, iout)
Source options from input context.
subroutine, public gnc_cr(gncobj, name_parent, inunit, iout)
Create new GNC exchange object.
This module contains stateless conductance functions.
real(dp) function, public thksatnm(ibdn, ibdm, ictn, ictm, iupstream, ihc, hn, hm, satn, satm, topn, topm, botn, botm)
Calculate wetted cell thickness at interface between two cells.
real(dp) function, public condmean(k1, k2, thick1, thick2, cl1, cl2, width, iavgmeth)
Calculate the conductance between two cells.
real(dp) function, public hcond(ibdn, ibdm, ictn, ictm, iupstream, ihc, icellavg, condsat, hn, hm, satn, satm, hkn, hkm, topn, topm, botn, botm, cln, clm, fawidth)
Horizontal conductance between two cells.
real(dp) function, public vcond(ibdn, ibdm, ictn, ictm, inewton, ivarcv, idewatcv, condsat, hn, hm, vkn, vkm, satn, satm, topn, topm, botn, botm, flowarea)
Vertical conductance between two cells.
subroutine, public exg_mvr_cr(exg_mvr, name_parent, inunit, iout, dis)
This module contains the GwfGwfExchangeModule Module.
integer(i4b) function gwf_gwf_get_iasym(this)
Set symmetric flag.
subroutine calc_hy_horizontal(this, iexg, hyn, hym)
Calculate horizontal hydraulic conductivity for an exchange.
subroutine gwf_gwf_fp(this)
Final processing.
subroutine gwf_gwf_cq(this, icnvg, isuppress_output, isolnid)
Calculate flow.
class(gwfexchangetype) function, pointer, public getgwfexchangefromlist(list, idx)
Get exchange from list.
subroutine gwf_gwf_process_obsid(obsrv, dis, inunitobs, iout)
Obs ID processor.
subroutine rewet(this, kiter)
Rewet.
subroutine gwf_gwf_add_to_flowja(this)
Add exchange flow to each model flowja diagonal position so that residual is calculated correctly.
subroutine gwf_gwf_ac(this, sparse)
Add connections.
subroutine gwf_gwf_save_simvals(this)
Save simulated flow observations.
subroutine calc_cond_sat(this)
subroutine gwf_gwf_ar(this)
Allocate and read.
subroutine gwf_gwf_bdsav(this)
Budget save.
subroutine gwf_gwf_ad(this)
Advance.
subroutine gwf_gwf_fn(this, kiter, matrix_sln)
Fill Newton.
subroutine gwf_gwf_fc(this, kiter, matrix_sln, rhs_sln, inwtflag)
Fill coefficients.
subroutine gwf_gwf_bd(this, icnvg, isuppress_output, isolnid)
Budget.
subroutine gwf_gwf_da(this)
Deallocate.
subroutine gwf_gwf_rp(this)
Read and prepare.
real(dp) function qcalc(this, iexg, n1, n2)
Calculate flow.
subroutine gwf_gwf_df(this)
Define GWF GWF exchange.
subroutine gwf_gwf_df_obs(this)
Define observations.
logical(lgp) function gwf_gwf_connects_model(this, model)
Return true when this exchange provides matrix coefficients for solving model.
subroutine gwf_gwf_set_flow_to_npf(this)
Set flow rates to the edges in the models.
subroutine gwf_gwf_ot(this)
Output.
subroutine validate_exchange(this)
validate exchange data after reading
class(gwfexchangetype) function, pointer, public castasgwfexchange(obj)
Cast polymorphic object as exchange.
subroutine gwf_gwf_rp_obs(this)
Read and prepare observations.
subroutine, public gwfexchange_create(filename, name, id, m1_id, m2_id, input_mempath)
Create GWF GWF exchange.
subroutine gwf_gwf_mc(this, matrix_sln)
Map connections.
subroutine gwf_gwf_cf(this, kiter)
Calculate coefficients.
subroutine gwf_gwf_bdsav_model(this, model)
subroutine gwf_gwf_calc_simvals(this)
Calculate flow rates for the exchanges and store them in a member array.
subroutine gwf_gwf_chd_bd(this)
gwf-gwf-chd-bd
subroutine read_mvr(this, iout)
Read mover.
subroutine condcalc(this)
Calculate the conductance.
subroutine read_gnc(this)
Read ghost nodes.
This module defines variable data types.
type(listtype), public basemodellist
type(listtype), public baseexchangelist
character(len=lenmempath) function create_mem_path(component, subcomponent, context)
returns the path to the memory object
This module contains the derived types ObserveType and ObsDataType.
This module contains the derived type ObsType.
subroutine, public obs_cr(obs, inobs)
Create a new ObsType object.
This module contains simulation methods.
subroutine, public store_error(msg, terminate)
Store an error message.
integer(i4b) function, public count_errors()
Return number of errors.
subroutine, public store_error_filename(filename, terminate)
Store the erroring file name.
subroutine, public store_error_unit(iunit, terminate)
Store the file unit number.
This module contains simulation variables.
character(len=maxcharlen) errmsg
error message string
integer(i4b), dimension(:), allocatable model_loc_idx
equals the local index into the basemodel list (-1 when not available)
integer(i4b) iout
file unit number for simulation output
real(dp) function squadraticsaturationderivative(top, bot, x, eps)
Derivative of the quadratic saturation function.
This module contains the SourceCommonModule.
logical(lgp) function, public filein_fname(filename, tagname, input_mempath, input_fname)
enforce and set a single input filename provided via FILEIN keyword
subroutine, public table_cr(this, name, title)
logical(lgp), pointer, public readnewdata
flag indicating time to read new data
integer(i4b), pointer, public kstp
current time step number
integer(i4b), pointer, public kper
current stress period number
Highest level model type. All models extend this parent type.
This class is used to store a single deferred-length character string. It was designed to work in an ...
Exchange based on connection between discretizations of DisBaseType. The data specifies the connectio...
Extends model mover for exchanges to also handle the.
Derived type for GwfExchangeType.
A generic heterogeneous doubly-linked list.