Changeset 17267
- Timestamp:
- 02/12/14 15:34:57 (11 years ago)
- Location:
- issm/trunk-jpl/src/c/classes/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r17261 r17267 3175 3175 } 3176 3176 /*}}}*/ 3177 3177 bool Penta::IsIcefront(void){/*{{{*/ 3178 3179 bool isicefront; 3180 int i,nrice; 3181 IssmDouble ls[NUMVERTICES]; 3182 3183 /*Retrieve all inputs and parameters*/ 3184 GetInputListOnVertices(&ls[0],MaskIceLevelsetEnum); 3185 3186 /* If only one vertex has ice, there is an ice front here */ 3187 isicefront=false; 3188 if(IsIceInElement()){ 3189 nrice=0; 3190 for(i=0;i<NUMVERTICES2D;i++) 3191 if(ls[i]<0.) nrice++; 3192 if(nrice==1) isicefront= true; 3193 } 3194 return isicefront; 3195 }/*}}}*/ 3178 3196 /*FUNCTION Penta::AverageOntoPartition {{{*/ 3179 3197 void Penta::AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part){ -
issm/trunk-jpl/src/c/classes/Elements/Penta.h
r17257 r17267 114 114 int PressureInterpolation(); 115 115 bool IsZeroLevelset(int levelset_enum); 116 bool IsIcefront(void) {_error_("not implemented yet");};116 bool IsIcefront(void); 117 117 void ZeroLevelsetCoordinates(IssmDouble** pxyz_zero,IssmDouble* xyz_list,int levelsetenum); 118 118 void GetIcefrontCoordinates(IssmDouble** pxyz_front,IssmDouble* xyz_list,int levelsetenum){_error_("not implemented yet");};
Note:
See TracChangeset
for help on using the changeset viewer.