diff --git a/RR-2-patch-test.py b/RR-2-patch-test.py
index f442147395eaa28ab78720b1eda0cc8cd876beb5..df0fb8065f30b0106ca23d31977b6e5e04d366d1 100755
--- a/RR-2-patch-test.py
+++ b/RR-2-patch-test.py
@@ -337,7 +337,7 @@ print("vertices of subdomain1: \n", coordinates1)
 # dom1_interface_coordinates = interface[0].coordinates(interface_marker1, 1, print_coordinates = True)
 dom1_interface_def_points = interface[0]._vertex_indices(interface_marker1, 1, print_vertex_indices = True)
 
-interface[0].write_dofs(from_function = f1test, #
+interface[0].write_pressure_dofs(from_function = f1test, #
                         interface_dofs = dofs_on_interface1,#
                         dof_to_vert_map = dom1_d2v,#
                         local_to_parent_vertex_map = dom1_parent_vertex_indices,#
@@ -457,7 +457,7 @@ for iterations in range(1):
     #print("ds term:\n", dsform_vec.array())
     # print('solution:\n', U1.get_local())
     p1_i.vector()[:] = U1
-    interface[0].write_dofs(from_function = p1_i, #
+    interface[0].write_pressure_dofs(from_function = p1_i, #
                             interface_dofs = dofs_on_interface1,#
                             dof_to_vert_map = dom1_d2v,#
                             local_to_parent_vertex_map = dom1_parent_vertex_indices,#