Skip to content
Snippets Groups Projects
Commit efc7338c authored by Matt Wala's avatar Matt Wala
Browse files

generate_warped_rect_mesh: Make the mapping less oscillatory, as it seems to be non-bijective.

parent 16d575d6
No related branches found
No related tags found
No related merge requests found
...@@ -547,7 +547,7 @@ def generate_warped_rect_mesh(dim, order, n): ...@@ -547,7 +547,7 @@ def generate_warped_rect_mesh(dim, order, n):
0.05*np.cos(10*x[0]) 0.05*np.cos(10*x[0])
+ 1.3*x[1] + np.sin(x[1])) + 1.3*x[1] + np.sin(x[1]))
if len(x) == 3: if len(x) == 3:
result[2] = x[2] + np.sin(x[0]) result[2] = x[2] + np.sin(x[0] / 2) / 2
return result return result
from meshmode.mesh.processing import map_mesh from meshmode.mesh.processing import map_mesh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment