Changeset 17315
- Timestamp:
- 02/20/14 08:55:05 (11 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp ¶
r17309 r17315 16 16 17 17 switch(approximation){ 18 case SSAApproximationEnum: numdofs =2; break; 18 case SSAApproximationEnum: 19 switch(meshtype){ 20 case Mesh3DEnum: numdofs=2; break; 21 case Mesh2DverticalEnum: numdofs=1; break; 22 default: _error_("mesh type not supported yet"); 23 } 24 break; 19 25 case L1L2ApproximationEnum: numdofs =2; break; 20 26 case HOApproximationEnum: … … 1422 1428 1423 1429 /*Transform coordinate system*/ 1424 element->TransformLoadVectorCoord(pe,XYEnum);1430 if(dim==2) element->TransformLoadVectorCoord(pe,XYEnum); 1425 1431 1426 1432 /*Clean up and return*/ … … 1496 1502 1497 1503 /*Transform coordinate system*/ 1498 element->TransformLoadVectorCoord(pe,XYEnum);1504 if(dim==2) element->TransformLoadVectorCoord(pe,XYEnum); 1499 1505 1500 1506 /*Clean up and return*/ … … 1696 1702 /*Ok, we have vx and vy in values, fill in vx and vy arrays: */ 1697 1703 for(i=0;i<numnodes;i++){ 1698 vx[i]=values[i* 2+0];1704 vx[i]=values[i*dim+0]; 1699 1705 if(xIsNan<IssmDouble>(vx[i])) _error_("NaN found in solution vector"); 1700 1706 1701 1707 if(dim==2){ 1702 vy[i]=values[i* 2+1];1708 vy[i]=values[i*dim+1]; 1703 1709 if(xIsNan<IssmDouble>(vy[i])) _error_("NaN found in solution vector"); 1704 1710 } … … 1711 1717 } 1712 1718 else{ 1713 element->GetInputListOnNodes(&vy[0],VyEnum,0.);1719 basalelement->GetInputListOnNodes(&vy[0],VyEnum,0.); 1714 1720 for(i=0;i<numnodes;i++) vel[i]=sqrt(vx[i]*vx[i] + vy[i]*vy[i]); 1715 1721 } -
TabularUnified issm/trunk-jpl/src/c/classes/Elements/Seg.cpp ¶
r17310 r17315 227 227 } 228 228 /*}}}*/ 229 /*FUNCTION Seg::JacobianDeterminantSurface{{{*/ 230 void Seg::JacobianDeterminantSurface(IssmDouble* pJdet,IssmDouble* xyz_list,Gauss* gauss){ 231 232 *pJdet = 1.; 233 234 } 235 /*}}}*/ 229 236 /*FUNCTION Seg::NewGauss(){{{*/ 230 237 Gauss* Seg::NewGauss(void){ -
TabularUnified issm/trunk-jpl/src/c/classes/Elements/Seg.h ¶
r17310 r17315 96 96 void JacobianDeterminant(IssmDouble* Jdet, IssmDouble* xyz_list,Gauss* gauss); 97 97 void JacobianDeterminantLine(IssmDouble* Jdet, IssmDouble* xyz_list,Gauss* gauss){_error_("not implemented yet");}; 98 void JacobianDeterminantSurface(IssmDouble* pJdet, IssmDouble* xyz_list,Gauss* gauss) {_error_("not implemented yet");};98 void JacobianDeterminantSurface(IssmDouble* pJdet, IssmDouble* xyz_list,Gauss* gauss); 99 99 void JacobianDeterminantBase(IssmDouble* pJdet,IssmDouble* xyz_list_base,Gauss* gauss){_error_("not implemented yet");}; 100 100 void JacobianDeterminantTop(IssmDouble* pJdet,IssmDouble* xyz_list_base,Gauss* gauss){_error_("not implemented yet");}; -
TabularUnified issm/trunk-jpl/src/c/classes/gauss/GaussSeg.cpp ¶
r17310 r17315 133 133 void GaussSeg::GaussNode(int finiteelement,int iv){ 134 134 135 _error_("not supported"); 135 /*in debugging mode: check that the default constructor has been called*/ 136 _assert_(numgauss==-1); 137 138 /*update static arrays*/ 139 switch(finiteelement){ 140 case P1Enum: case P1DGEnum: 141 switch(iv){ 142 case 0: coord1=-1.; break; 143 case 1: coord1=+1.; break; 144 default: _error_("node index should be in [0 1]"); 145 } 146 break; 147 default: _error_("Finite element "<<EnumToStringx(finiteelement)<<" not supported"); 148 } 136 149 137 150 }
Note:
See TracChangeset
for help on using the changeset viewer.