Skip to content

Commit 52cdc44

Browse files
committed
Fix 2d H(div) formulations embedded in 3d space
1 parent 0410419 commit 52cdc44

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/fe/hdiv_fe_transformation.C

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ void HDivFETransformation<OutputShape>::map_phi(const unsigned int dim,
8080
Real dy_dxi = dxyz_dxi[p](1);
8181
Real dy_deta = dxyz_deta[p](1);
8282

83+
Real dz_dxi = dxyz_dxi[p](2);
84+
Real dz_deta = dxyz_deta[p](2);
85+
8386
// Need to temporarily cache reference shape functions
8487
// We are computing mapping basis functions, so we explicitly ignore
8588
// any non-zero p_level() the Elem might have.
@@ -88,6 +91,7 @@ void HDivFETransformation<OutputShape>::map_phi(const unsigned int dim,
8891

8992
phi[i][p](0) = (dx_dxi*phi_ref(0) + dx_deta*phi_ref(1))/J[p];
9093
phi[i][p](1) = (dy_dxi*phi_ref(0) + dy_deta*phi_ref(1))/J[p];
94+
phi[i][p](2) = (dz_dxi*phi_ref(0) + dz_deta*phi_ref(1))/J[p];
9195
}
9296

9397
break;

0 commit comments

Comments
 (0)