Skip to content
Snippets Groups Projects
Commit df4ec218 authored by Alexandru Fikl's avatar Alexandru Fikl
Browse files

do not use deprecated interp

parent 9efe5659
Branches
Tags
No related merge requests found
......@@ -65,15 +65,15 @@ def wave_flux(discr, c, w_tpair):
0.5*normal_times(v_jump),
)
return discr.interp(w_tpair.dd, "all_faces", c*flux_weak)
return discr.project(w_tpair.dd, "all_faces", c*flux_weak)
def wave_operator(discr, c, w):
u = w[0]
v = w[1:]
dir_u = discr.interp("vol", BTAG_ALL, u)
dir_v = discr.interp("vol", BTAG_ALL, v)
dir_u = discr.project("vol", BTAG_ALL, u)
dir_v = discr.project("vol", BTAG_ALL, v)
dir_bval = flat_obj_array(dir_u, dir_v)
dir_bc = flat_obj_array(-dir_u, dir_v)
......
......@@ -131,7 +131,7 @@ class EagerDGDiscretization(DGDiscretizationWithBoundaries):
def interior_trace_pair(discrwb, vec):
i = discrwb.interp("vol", "int_faces", vec)
i = discrwb.project("vol", "int_faces", vec)
if (isinstance(vec, np.ndarray)
and vec.dtype.char == "O"
......@@ -156,7 +156,7 @@ class RankBoundaryCommunication:
self.remote_btag = BTAG_PARTITION(remote_rank)
self.bdry_discr = discrwb.discr_from_dd(self.remote_btag)
self.local_dof_array = discrwb.interp("vol", self.remote_btag, vol_field)
self.local_dof_array = discrwb.project("vol", self.remote_btag, vol_field)
local_data = self.array_context.to_numpy(flatten(self.local_dof_array))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment