Changeset 26917
- Timestamp:
- 03/08/22 10:16:44 (3 years ago)
- Location:
- issm/trunk-jpl/src/c/classes/matrix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/matrix/ElementMatrix.cpp
r26144 r26917 260 260 _printf_(" sglobaldoflist (" << sglobaldoflist << "): "); 261 261 for(i=0;i<nrows;i++)_printf_(" " << sglobaldoflist[i]); _printf_(" \n"); 262 } 263 /*}}}*/ 264 bool ElementMatrix::HasDof(int dof,int set){/*{{{*/ 265 266 if(set==FsetEnum){ 267 for(int i=0;i<this->nrows;i++) if(this->fglobaldoflist[i] == dof) return true; 268 } 269 else if(set==GsetEnum){ 270 for(int i=0;i<this->nrows;i++) if(this->gglobaldoflist[i] == dof) return true; 271 } 272 else if(set==SsetEnum){ 273 for(int i=0;i<this->nrows;i++) if(this->sglobaldoflist[i] == dof) return true; 274 } 275 else{ 276 _error_("not supported yet"); 277 } 278 279 return false; 262 280 } 263 281 /*}}}*/ -
issm/trunk-jpl/src/c/classes/matrix/ElementMatrix.h
r26144 r26917 46 46 void StaticCondensation(int numindices,int* indices); 47 47 void Transpose(void); 48 bool HasDof(int dof,int set); 48 49 }; 49 50 #endif //#ifndef _ELEMENT_MATRIX_H_
Note:
See TracChangeset
for help on using the changeset viewer.