Skip to content

Commit

Permalink
Surface Jacobian correction
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaGiovacchini committed Mar 7, 2022
1 parent d8daa57 commit cf368d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MGFE.C
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,9 @@ double MGFE::JacSur2D( // 2D surface jacobean ->
}
// surface weighted jacobean
double det = sqrt(dxdxi * dxdxi + dydxi * dydxi);
InvJac[0] = 1. / det;
// InvJac[0] = 1. / det;
InvJac[0] = dxdxi/(det*det);
InvJac[2] = dydxi/(det*det);
return (det);
}

Expand Down

0 comments on commit cf368d5

Please sign in to comment.