49 class(MapperType) :: this
52 class(SpatialModelConnectionType),
pointer :: conn
53 class(VirtualExchangeType),
pointer :: virt_exg
54 character(len=LENMEMPATH) :: virt_mem_path, local_mem_path
59 if (.not. virt_exg%v_model1%is_local)
then
60 virt_mem_path = virt_exg%get_vrt_mem_path(
'NODEM1',
'')
61 call this%map_data_full(0,
'NODEM1', conn%prim_exchange%memoryPath, &
65 if (virt_exg%has_mover())
then
66 local_mem_path = create_mem_path(virt_exg%name,
'MVR')
67 virt_mem_path = virt_exg%get_vrt_mem_path(
'QPACTUAL_M1',
'MVR')
68 call this%map_data_full(conn%owner%idsoln,
'QPACTUAL_M1', &
69 local_mem_path,
'QPACTUAL_M1', &
71 virt_mem_path = virt_exg%get_vrt_mem_path(
'QAVAILABLE_M1',
'MVR')
72 call this%map_data_full(conn%owner%idsoln,
'QAVAILABLE_M1', &
73 local_mem_path,
'QAVAILABLE_M1', &
75 virt_mem_path = virt_exg%get_vrt_mem_path(
'ID_MAPPED_M1',
'MVR')
76 call this%map_data_full(conn%owner%idsoln,
'ID_MAPPED_M1', &
77 local_mem_path,
'ID_MAPPED_M1', &
81 if (.not. virt_exg%v_model2%is_local)
then
82 virt_mem_path = virt_exg%get_vrt_mem_path(
'NODEM2',
'')
83 call this%map_data_full(0,
'NODEM2', conn%prim_exchange%memoryPath, &
87 if (virt_exg%has_mover())
then
88 local_mem_path = create_mem_path(virt_exg%name,
'MVR')
89 virt_mem_path = virt_exg%get_vrt_mem_path(
'QPACTUAL_M2',
'MVR')
90 call this%map_data_full(conn%owner%idsoln,
'QPACTUAL_M2', &
91 local_mem_path,
'QPACTUAL_M2', &
93 virt_mem_path = virt_exg%get_vrt_mem_path(
'QAVAILABLE_M2',
'MVR')
94 call this%map_data_full(conn%owner%idsoln,
'QAVAILABLE_M2', &
95 local_mem_path,
'QAVAILABLE_M2', &
97 virt_mem_path = virt_exg%get_vrt_mem_path(
'ID_MAPPED_M2',
'MVR')
98 call this%map_data_full(conn%owner%idsoln,
'ID_MAPPED_M2', &
99 local_mem_path,
'ID_MAPPED_M2', &
type(listtype), public baseconnectionlist
integer(i4b), parameter, public stg_bfr_exg_fc
before exchange formulate (per solution)
integer(i4b), parameter, public stg_aft_con_rp
after connection read prepare
integer(i4b), parameter, public stg_bfr_con_df
before connection define
class(spatialmodelconnectiontype) function, pointer, public get_smc_from_list(list, idx)
Get the connection from a list.
class(virtualexchangetype) function, pointer, public get_virtual_exchange(exg_id)
Returns a virtual exchange with the specified id.
Class to manage spatial connection of a model to one or more models of the same type....
The Virtual Exchange is based on two Virtual Models and is therefore not always strictly local or rem...