33 type(TspExchangeMoverType),
pointer :: mvt
34 character(len=*),
intent(in) :: name_exg
35 class(TransportModelType),
pointer :: tsp_model1
36 class(TransportModelType),
pointer :: tsp_model2
37 character(len=*),
intent(in) :: gwfmodelname1
38 character(len=*),
intent(in) :: gwfmodelname2
39 integer(I4B),
intent(in) :: inunit
40 integer(I4B),
intent(in) :: iout
42 type(TspFmiType),
pointer :: fmi1, fmi2
43 real(DP),
pointer :: eqnsclfac
44 character(len=LENVARNAME) :: depvartype
49 if (
associated(tsp_model1))
then
50 fmi1 => tsp_model1%fmi
51 eqnsclfac => tsp_model1%eqnsclfac
52 depvartype = tsp_model1%depvartype
55 if (
associated(tsp_model2))
then
56 fmi2 => tsp_model2%fmi
57 eqnsclfac => tsp_model2%eqnsclfac
58 depvartype = tsp_model2%depvartype
61 mvt%model1 => get_virtual_model(gwfmodelname1)
62 mvt%model2 => get_virtual_model(gwfmodelname2)
64 call mvt%mvt_init(name_exg, inunit, iout, fmi1, &
65 eqnsclfac, depvartype, gwfmodelname1, &
68 call mem_allocate(mvt%quantity_m1, 0,
"QUANTITY_M1", mvt%memoryPath)
69 call mem_allocate(mvt%quantity_m2, 0,
"QUANTITY_M2", mvt%memoryPath)
70 call mem_allocate(mvt%maxmvt,
"MAXMVT", mvt%memoryPath)