Skip to content

Commit fc2c83d

Browse files
markrieglerj042
authored andcommitted
Add parent to para scaling to Galerkin IGA example
1 parent 9f7ab25 commit fc2c83d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/iga/galerkin_laplace_problem.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def map_positions(positions, x_min, x_max, y_min, y_max):
9595
ukv[1][j + 1],
9696
)
9797
det_jacs = np.linalg.det(geometry.jacobian(mapped_positions))
98+
# Scale jacobian by element size
99+
det_jacs *= (ukv[0][i + 1] - ukv[0][i]) * (ukv[1][j + 1] - ukv[1][j])
98100

99101
# RHS
100102
# q : quadrature point | d: dim

0 commit comments

Comments
 (0)