# print(f"have written subdomain{subdomain_ind} pressure to interface{self.global_index} for phase {phase}\n", self.pressure_values[subdomain_ind][phase])
# # print(f"have written subdomain{subdomain_ind} pressure to interface{self.global_index} for phase {phase}\n", self.pressure_values[subdomain_ind][phase])
else:
# else:
fordof_indexininterface_dofs:
# for dof_index in interface_dofs:
# from_function.vector() is orderd by dof and not by vertex numbering of the mesh.
# # from_function.vector() is orderd by dof and not by vertex numbering of the mesh.
# parent needs a mesh vertex index of the submesh, therefore d2v is needed.
# # parent needs a mesh vertex index of the submesh, therefore d2v is needed.
# print(f"have written subdomain{subdomain_ind} pressure_prev_iter to interface{self.global_index} for phase {phase}\n", self.pressure_values_prev[subdomain_ind][phase])
# # print(f"have written subdomain{subdomain_ind} pressure_prev_iter to interface{self.global_index} for phase {phase}\n", self.pressure_values_prev[subdomain_ind][phase])
#
#
defread_gli_dofs(self,from_array:np.array,#
# def read_gli_dofs(self, from_array: np.array, #
interface_dofs:np.array,#
# interface_dofs: np.array,#
dof_to_vert_map:np.array,#
# dof_to_vert_map: np.array,#
local_to_parent_vertex_map:np.array,#
# local_to_parent_vertex_map: np.array,#
phase:str,#
# phase: str,#
subdomain_ind:int,#
# subdomain_ind: int,#
previous_iter:bool=False,#
# previous_iter: bool = False,#
)->None:
# ) -> None:
""" Read dofs of from_array with indices interface_dofs and write to self.gli_term
# """ Read dofs of from_array with indices interface_dofs and write to self.gli_term
#
Read the degrees of freedom of the array from_array with indices
# Read the degrees of freedom of the array from_array with indices
interface_dofs, i.e. the dofs of the interface, and write them to one of the dictionaries
# interface_dofs, i.e. the dofs of the interface, and write them to one of the dictionaries
# print(f"have written subdomain{subdomain_ind} gl_prev dofs to interface{self.global_index} for phase {phase}\n", self.gli_term_prev[subdomain_ind][phase])
# # print(f"have written subdomain{subdomain_ind} gl_prev dofs to interface{self.global_index} for phase {phase}\n", self.gli_term_prev[subdomain_ind][phase])
# # print(f"python id of self._interface_has_common_dof_indices[{interf_ind}][{phase}]", id(self._interface_has_common_dof_indices[interf_ind][phase]))