Changeset 22983
- Timestamp:
- 07/19/18 16:37:45 (7 years ago)
- Location:
- issm/trunk-jpl/src/c/classes/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/TriaRef.cpp
r20810 r22983 116 116 Matrix2x2Determinant(Jdet,&J[0][0]); 117 117 if(*Jdet<0) _error_("negative jacobian determinant!"); 118 119 } 120 /*}}}*/ 121 void TriaRef::GetJacobianDeterminant3D(IssmDouble* Jdet, IssmDouble* xyz_list,Gauss* gauss){/*{{{*/ 122 /*The Jacobian determinant is constant over the element, discard the gaussian points. 123 * J is assumed to have been allocated of size NDOF2xNDOF2.*/ 124 IssmDouble J[2][2]; 125 126 /*Get Jacobian*/ 127 GetJacobian(&J[0][0],xyz_list,gauss); 128 129 /*Get Determinant*/ 130 Matrix2x2Determinant(Jdet,&J[0][0]); 118 131 119 132 } -
issm/trunk-jpl/src/c/classes/Elements/TriaRef.h
r20810 r22983 20 20 void GetJacobian(IssmDouble* J, IssmDouble* xyz_list,Gauss* gauss); 21 21 void GetJacobianDeterminant(IssmDouble* Jdet, IssmDouble* xyz_list,Gauss* gauss); 22 void GetJacobianDeterminant3D(IssmDouble* Jdet, IssmDouble* xyz_list,Gauss* gauss); 22 23 void GetJacobianInvert(IssmDouble* Jinv, IssmDouble* xyz_list,Gauss* gauss); 23 24 void GetNodalFunctions(IssmDouble* basis,Gauss* gauss,int finiteelement);
Note:
See TracChangeset
for help on using the changeset viewer.