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
41
42 type(TspFmiType), pointer :: fmi1, fmi2
43 real(DP), pointer :: eqnsclfac
44 character(len=LENVARNAME) :: depvartype
45
46 allocate (mvt)
47
48 fmi1 => null()
49 if (associated(tsp_model1)) then
50 fmi1 => tsp_model1%fmi
51 eqnsclfac => tsp_model1%eqnsclfac
52 depvartype = tsp_model1%depvartype
53 end if
54 fmi2 => null()
55 if (associated(tsp_model2)) then
56 fmi2 => tsp_model2%fmi
57 eqnsclfac => tsp_model2%eqnsclfac
58 depvartype = tsp_model2%depvartype
59 end if
60
61 mvt%model1 => get_virtual_model(gwfmodelname1)
62 mvt%model2 => get_virtual_model(gwfmodelname2)
63
64 call mvt%mvt_init(name_exg, inunit, iout, fmi1, &
65 eqnsclfac, depvartype, gwfmodelname1, &
66 gwfmodelname2, fmi2)
67
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)
71 mvt%maxmvt = 0
72